[fpc-devel] Calling Web Service from Freepascal
Michael Van Canneyt
michael at freepascal.org
Fri Feb 3 13:49:00 CET 2006
On Fri, 3 Feb 2006, Daniƫl Mantione wrote:
>
>
> Op Fri, 3 Feb 2006, schreef Amir Aavani:
>
>>
>> Any one call a webservice (WSDL) from Freepascal. I did it using Delphi, but
>> now i want to do it by freepascal/Lazarus.
>
> You are as clear as saying "I live in Europe and don't like my
> neighbourhood". Please be more specific.
It's clear for me (but I live in Europe ;) )
FPC has all the components to which you need to call a WSDL,
but does not offer a simple wrapper such as Delphi does.
The current way is to
- Create a request using the DOM components. This should be quite
straightforward;
- Use some network components (Synapse, lnet, Indy) to send the request
and receive the result.
- Use again DOM to analyze the result of the request.
FPC contains a xmlRPC implementation, which you can use and adapt to
work with WDSL/SOAP. The protocol is similar, see the directory
fcl/xml of the sources.
At a later stage, xmlRPC will be extended to be able to connect to a
SOAP service. At that time, it will be simple to create a wrapper wich
does all the above for you.
Michael.
More information about the fpc-devel
mailing list