Product Information > JADE Developer’s Reference > Chapter 11 - Building Web Services Applications > Using the Imported Web Service Consumer
Using the Imported Web Service Consumer

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 addHttpHeader method of the JadeWebServiceConsumer class enables you to add, change, or remove HTTP headers. The getHttpHeader method of the JadeWebServiceConsumer class enables you to examine the value of a user-defined HTTP header.

The getHttpHeaderClient method of the JadeWebServiceConsumer class enables you to examine the value of a client HTTP header sent with a Web service request. The getHttpHeaderServer method of the JadeWebServiceConsumer class enables you to examine the value of a server HTTP header sent with a Web service response.

In the following sections, code examples show how to run the Web service methods synchronously and asynchronously.