[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1120
  • Last Modified:

Delphi Soap Server and SQL Server

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
GaryBytes
Asked:
GaryBytes
  • 3
  • 3
1 Solution
 
Ivanov_GCommented:
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
 
GaryBytesAuthor Commented:
Thank you. Do you have any examples of working with MIDAS and SQL Server and a SOAP Server?

Thanks, Gary
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
GaryBytesAuthor Commented:
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
 
Ivanov_GCommented:
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
 
GaryBytesAuthor Commented:
Many thanks for all your help.

Gary
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now