Importing the WSDL Document

Use

You download the WSDL document and import it in the SAP NetWeaver Developer Studio to generate a Web service proxy.

Prerequisites

The HelloWorldEAR project is on the application server.

Procedure

1. Download the HelloWorld WSDL document.

  1. Open the HelloWorld WSDL document in a Web browser by entering the following address:

    http://localhost:<p ort>/HelloService/HelloBean?wsdl

    You can construct <port> by the formula 5 + NN + 00, where NN is the number of the Java instance.

  2. Save the WSDL document on your local machine.

  3. Rename the HelloBean. xml to HelloBean. wsdl .

2. Import the WSDL document in the SAP NetWeaver Developer Studio.

  1. In the Project Explorer , choose the HelloWorldWEB project.

  2. Right click the project and choose Start of the navigation pathImport Next navigation step ImportEnd of the navigation path.The Import window opens.

  3. In the list of wizards, choose Start of the navigation pathWeb services  Next navigation step Import WSDLEnd of the navigation path, and then choose Next .

  4. Make sure that the Outputfolder field contains the HelloWorldWEB project.

  5. Choose the Remote Location / FileSystem option, and then choose Next .

  6. Choose Browse , and then open the saved WSDL document.

  7. Choose Finish .

Result

The WSDL document appears in the HelloWorldWEB project.