You import the Web service WSDL document to create Web service proxy. You generate Web service proxy outside-in from the WSDL document.
The ConverterEAR project is started on the application server.
1. Open the Converter Web service WSDL document in a web browser by entering the following address:
http://localhost:<port>/sapws/com.sap/ConverterEAR_ConverterEJB_EJB_ConverterBean/Converter_Service/ConverterBeanPort?wsdl&mode=ws_policy
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 ConverterBeanPort.xml to ConverterBeanPort.wsdl.
...
1. In the Project Explorer, of the Java EE perspective, choose the converterwebclient project.
2. Right-click the project and choose Import → Import.
The Import window opens.
3. In the list of wizards, choose Web services → WSDL, and then choose Next.
4. Make sure that the Output folder field contains the /LocalDevelopment~LocalDevelopment~converterwebclient~com.sap.tutorial project.
5. Choose the Remote Location / File System option, and then choose Next.
6. Choose Browse, and then open the saved WSDL document.
7. Choose Finish.
The Web service WSDL document appears in the converterwebclient project.
Generating the Converter Web Service Proxy