!--a11y-->
Creating a Deployable Proxy 
When a Web service client proxy definition is created in the SAP NetWeaver Developer Studio, a proxy is generated for the Web service on the client side on the basis of a WSDL document. Logical ports (LP) and service endpoint interfaces (SEI) are automatically created.
Service endpoint interfaces are created by the proxy generator in accordance with the <port type>- information in the WSDL document. SEIs are used by client applications for Web service calls. The actual structure of an SEI depends on whether an RPC-style or a document-style proxy was generated.
A proxy can be used for different applications.
In a Web project or an EJB project, a WS client proxy project can be referenced in each case.
To create a deployable proxy, proceed as follows:
...
1. Create a Web service proxy project. Choose File ® New ® Project ® Web Services ® Deployable Proxy Project.
2. Select the name of the project and choose New ® Client Proxy Definition in the context menu.

In addition to the procedure described here, you can also use the Web Service Navigator view to create a deployable proxy.
Enter the required data. Select JAX-RPC Service Interface if you want JAX-RPC interface to be generated, and choose a WSDL source among Local Server, Local File System or URL, and UDDI or URL to find the WSDL document on which the WS proxy is to be based.

a. If you select Local Server, a list of deployed Web services on the J2EE Engine is displayed. Select the one for which you are creating this proxy and choose Next.

In this SampleWSProxy client example, a SampleWS Web service has been created with myBusinessMethod()that returns “SampleWS invoked successfully” message.
b. If you select Local File System or URL, you have to specify the WSDL URL or browse the WSDL for the file system.
c. If you select UDDI or URL, you have to specify the WSDL URL or search the WSDL in the UDDI registry. Selecting UDDI opens the Search page of the UDDI client browser and by using its features you can find the required WSDL. To use the UDDI client, you have to configure the HTTP proxy settings in the Web Services Container Service of the Visual Administrator.
For more information, see also Initial Configuring and Querying UDDI
3. Build and deploy the proxy. Select the name of the proxy and choose Build EAR in the context menu. When the EAR file is generated, select it and choose Deploy.


The deployable proxy is created and deployed on the SAP J2EE Engine. In this example the proxy is bound under the following JNDI context:
/wsclients/proxies/sap.com/SampleWSProxy_PRX/samplews.proxy.SampleWSProxy
You now need to create a client application with bean or servlet that uses this proxy. You can expose the created bean as a Web service so that it can be easily tested through the Web service’s test page.
See also:
