V
V
Vladislav Yaroslavlev2013-09-04 07:16:17
Delphi
Vladislav Yaroslavlev, 2013-09-04 07:16:17

Using Dynamic WSDL in Delphi

We need to pass the received data to the specified web service, which is unknown at the time of compilation. Those. we cannot use the WSDL Import Wizard.

Let's say for a web service its WSDL, the desired operation and the parameter (to which to pass data) are given in the INI file:

[Section]
WSDL=http://example.com/SomePub/ws/SomeService?wsdl
Username=myuser
Password=mypass
OperationName=MyOperation
ParameterName=MyParameter


In general, how in Delphi to call methods of a web service that is not known in advance?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kozztik, 2013-09-04
@kozztik

Look at the SOAP implementation code in the VCL. There is some undocumented RTTI that can be used for this purpose. Unfortunately, I don't have the sources, but I've done my own SOAP implementation, so it can be done. True, WSDL will have to be parsed on its own.

K
kozztik, 2013-09-04
@kozztik

Look at the SOAP implementation code in the VCL. There is some undocumented RTTI that can be used for this purpose. Unfortunately, I don't have the sources, but I've done my own SOAP implementation, so it can be done. True, WSDL will have to be parsed on its own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question