How Do I: Call One Web Service From Another?

You can call another web service from a WebLogic Workshop web service using a Service control. A Service control provides an interface to another web service, allowing the service you are creating to invoke the methods and handle the callbacks of the other service. In addition, through a Service control you can customize how you interact with the web service the control calls, using XML maps to shape XML message, buffers to support asynchrony, and so on. The other web service can be one developed with WebLogic Workshop or any web service for which a WSDL file is available.

To learn more about Service controls, see Service Control: Using Another Web Service.

To learn more about controls, see Controls: Using Resources from a Web Service.

To Add a Service Control to Access to Another Web Service

  1. In Design View, from the Add Control drop-down list, select Add Service Control. The Add a Service dialog appears.

  2. In Step 1, type the variable name for your Service control. This must be a valid Java identifier.

  3. In Step 2, choose the source of your control as follows:

  1. Click Create to finish the process and close the Add a Service Control dialog.

The control you have added is displayed in Design View on the right side of your web service. To learn how to use the control once it has been added to your web service, see Using a Control.

Related Topics

Service Control: Using Another Web Service

Using a Control

How Do I: Use a WebLogic Server Web Service?

How Do I: Use an Apache SOAP Web Service?

How Do I: Use a .NET Web Service?