(10-03-2019, 05:31 AM)SorenJensen Wrote: Hi All,Hi Soren,
I need to receive data from a webservice after a request.
I will normally include the webservice specs as a wsdl (*.pas file), and communicate with the service using XML.
Is that possible in IntraWeb 15.1.5 and if, do anyone have any examples of how to ?
In a Delphi 2010 Win32 program, I include the WDSL as a unit, and call the procedures it expose, as I would any other procedures. The resulting data are received as an XML file, which I then decipher (with a parser) and pull out the data I need.
In a similar C# program in MS Visual Studio 2010, it's a bit easier as XML is an native part, making the individual data in the XML, available as properties of the XML file.
Is there anything similar awailable in IntraWeb ?
Regards
Soren
The process is identical even in an IW app (though I use c++). I generate the unit from the wsdl file (or the wizard) and then, in the usersession, a function calls the webservice and gets the response. All works around the HTTPRIO component as usual.
Ciao
Claudio