How Do I: Use a Web Service in Another WebLogic Workshop Application?

When you want to use a web service in another application, you can use a Web Service control. You must first obtain the WSDL file for the target web service, then create a Web Service control from the WSDL file.

Note: Before you can call a web service in another application, the called service must first be deployed. You can deploy a web service by running it in WebLogic Workshop (in its own application).

To Create a Service Control for Use in Calling Across Applications

  1. On the Application tab, locate the web service (JWS) you will be calling.
  2. Right-click the JWS file, then click Generate WSDL File.
  3. Open the application from which you will be calling the web service.
  4. Right-click the folder that should contain the Service control generated from the web service, then click Import.

  5. In the Import Files dialog, browse to the WSDL file you created, select it, then click Import.

    Note that you should import WSDL into a subfolder of your project. You will not be able to create a JCX from the WSDL if it is at the root of the project.

  6. On the Application tab for the calling application, right-click the imported WSDL file, then click Generate JCX File. This will generate a Web Service control for the web service you will be calling.
  7. To use the new JCX, add it to the component from which you will be calling its corresponding web service.

    For more information on using a Service control, see Adding an Existing Web Service Control in Creating a New Web Service Control.

Related Topics

How Do I: Use a Web Service that Is in Another Project?