Show TOC Start of Content Area

Procedure documentation Creating a Deployable Proxy  Locate the document in its SAP Library structure

Use

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.

Procedure

To create a deployable proxy, proceed as follows:

...

       1.      Create a Web service proxy project. Choose File New Project Web Services Deployable Proxy Project.

Note

We recommend that you create less than 20 Web service proxies in the proxy project. Creating many proxies in the same project may impact the system performance during the deployment.

       2.      Select the name of the project and choose New  Client Proxy Definition in the context menu.

Note

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.

This graphic is explained in the accompanying text

                            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.

Caution

The J2EE Engine must be up and running.

                            b.      If you select Local File System or URL, you have to specify the WSDL URL or browse the WSDL from the file system.

                            c.      If you select UDDI or URL, you have to specify the WSDL URL or search the WSDL in a UDDI registry. Selecting UDDI opens the Search page of the UDDI client browser and by using its features you can find the needed 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 from the context menu. When the EAR file is generated, select it and choose Deploy from the context menu.

Result

You can expose the created bean as a Web service so that it can be easily tested through the Web service’s test page.

Now, you need to create a client application that uses this proxy.

 

See also:

Creating a Web Service

Creating a Client Bean

Creating a Client Servlet

Creating a Client JavaServer Page

End of Content Area