fetch data from web service to dataset in Delphi

1k views Asked by At

i need to know about how to fetch data (array) from web service to my delphi dataset (db grid or string grid like REST Application), give me an example please... best regards

1

There are 1 answers

0
Santi Gesualdo On

I use web services in Delphi 7(soap 1.1) and Rad Studio XE6(soap 1.2). I recomend to use the WDSL Importer that comes with the IDE to make a .dcu file that represents the WebService(WS). Then you have to include the dcu file in the 'uses' of your .pas file.

Then, define the WS as a global static variable. You have to respect all the names in your dcu WS file.

So,

1- Use wdsl importer to create dcu file of the WS.

2- Include imported file in your 'uses' section.

3- Define the static var of the file.

4- Use the static var to call methods of the WS.

Hope it helps! Bye