In the following examples, there are two Web services with the methods for running them synchronously called getClient and getAgent. When you import the WSDL, you can optionally generate methods to run Web services asynchronously. If you select this option, additional methods are generated with Begin and End appended to the name of the synchronous method; that is, getClientBegin, getClientEnd, getAgentBegin, and getAgentEnd.
The following diagram shows the methods generated in the ErewhonInvestmentsService class.
The
The
In the following sections, code examples show how to run the Web service methods synchronously and asynchronously.