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
In Design View, from the Add Control drop-down list, select Add Service Control. The Add a Service dialog appears.
In Step 1, type the variable name for your Service control. This must be a valid Java identifier.
In Step 2, choose the source of your control as follows:
Click Use a Service control already defined by a CTRL file if there is already a CTRL file for the service you will be calling. You can click Browse to select the file from among those in your project.
Click Create a Service control from a WSDL if you have a WSDL file representing the service you will be calling. You can click Browse to select the file from among those in your project. You can also enter a URL specifying the location of the WSDL file or click UDDI to browse for a WSDL stored in a UDDI registry.
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.
Service Control: Using Another Web Service
How Do I: Use a WebLogic Server Web Service?