Web Service
Import a web service
Generate Delphi units from a WSDL — a URL or a file — like an assembly: the importer builds a proxy class for the service and lists its types.
- Press Import a web service on the first page, or start the importer from the IDE's Import WSDL/XML Webservice menu entry.
- Enter the WSDL location: a URL or a file, with Browse.
- Choose the protocol (SOAP 1.2 is the default; SOAP 1.1, HTTP GET, HTTP POST and HTTP SOAP are available) and, if you like, a unit name.
- If the service needs a user, open The service needs credentials and enter the domain (if any), user name and password.
- Press Add to import. The service then appears as a card marked Web service, and its types as those of an assembly.
The password is not written to an import project, but it is written to the generated unit. A unit that connects with a user name holds the domain, user name and password as constants — keep such units out of source control and out of anything you publish.