Solved

Delphi Soap Server and SQL Server

Posted on 2006-07-10
6
1,040 Views
Last Modified: 2010-04-05
Hi, I am new to web services, but I can see that it's pretty simple to create a basic soap server. But how to access an SQL server - does anyone have any examples. I have Delphi 7 Architect and BDS2006. My scenario is as follows:

- I have a SQL Server database on my website with one table, Customers.
- I want a soap server that has a simple function, "GetCustomer", that will query the DB for a customer id and return true or false if found.
- The client program connects to the internet and calls GetCustomer and passes a string and waits for the result.

If I had a sample to work from I would be off and running. I am used to local database development, but not web development. Any sample code, especially with regard to how to connect the database with authentication, would be greatly appreciated.

Gary
0
Comment
Question by:GaryBytes
  • 3
  • 3
6 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 17074984
You can work with MIDAS (TClientDataSet and TDataSetProvider) or work with SOAP Server that return XML to the client. This way you can have client written for other platforms and with other languages.
0
 

Author Comment

by:GaryBytes
ID: 17075410
Thank you. Do you have any examples of working with MIDAS and SQL Server and a SOAP Server?

Thanks, Gary
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 17075802
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:GaryBytes
ID: 17077332
Thank you. I appreciate your help. I had a look at these articles and unfortunately they do not deal with SQL Server from a SOAP Server. The first article deals with Kylix and SOAP Servers, but I am ok on creatig a basic SOAP Server. It is getting the SQL Server aspect of it working that I am stumbling on. I didn't see the full releveance of the second article dealing with XML and ClientDataSets, but maybe I'm missing something.

Gary
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 500 total points
ID: 17078962
I got it ... you want to see how to make web service connected with the database (SQL Server).

http://www-128.ibm.com/developerworks/db2/library/techarticle/0212cantu/0212cantu.html

Here is an article by Marcu Cantu, who gives example for WebService and DB2 that return XML. You can see also the client part.
0
 

Author Comment

by:GaryBytes
ID: 17094233
Many thanks for all your help.

Gary
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now