How Do I: Generate a WSDL File?

At any time in the development process, the Web Service Description Language (WSDL) file describing your web service is available from WebLogic Workshop. To learn more about WSDL files, see WSDL Files: Web Service Descriptions.

WSDL files describe all the methods a web service exposes (in the form of XML messages it can accept and send), as well as the protocols over which the web service is available. The WSDL file provides all the information a client application needs to use the web service.

There are two ways to obtain the WSDL file corresponding to a JWS file: from the WebLogic Workshop IDE or from WebLogic Server.

To Generate a WSDL File from a JWS File in the WebLogic Workshop IDE

  1. In the Application pane, browse to the JWS file for which you would like to generate a WSDL file.
  2. Right-click on the JWS file in the Application pane and select Generate WSDL File.
  3. If the name of the JWS file is MyService.jws, a file with the name MyServiceContract.wsdl is created in the same directory. By default, the WSDL file is linked to the JWS file from which it was generated, meaning it is regenerated whenever the JWS file is changed.

To Get a WSDL File from WebLogic Server

The WSDL file for a web service is available to any potential client that can reach the web service's URL. To obtain a web service's WSDL file from WebLogic Server:

  1. In a browser, browse to the URL of the web service with ?WSDL appended. For example:
    http://myServer:7001/MyProject/MyWebService.jws?WSDL
  2. Use your browser's File-->SaveAs function to save the WSDL file to your local machine. Note that some browsers will include HTML tags at the top and bottom of the saved file. You must use a text editor to remove these tags to produce a valid WSDL file.

Related Topics

WSDL Files: Web Service Descriptions

JCX File: Extending Controls the topic titles linked to and from are different