Entering content frame

Procedure documentation Creating a Web Service Client Application Locate the document in its SAP Library structure

To create a client application, proceed as follows:

Generieren ...

       1.      Generate a proxy object.

...

                            a.      Start the WSADMIN transaction. Then choose the Web service definition you created under SOAP Application for RFC-Compliant FMs.

                            b.      Open the WSDL document.

This graphic is explained in the accompanying text

                            c.      In the following dialog box, choose Document Style.

                            d.      Enter your user ID and password for authentication purposes. These are the user name and password you have used for logging on to the SAP R/3 system.

                            e.      Copy the URL of the WSDL document.

                              f.      Call the Object Navigator. Select Enterprise Services and, in the context menu, choose Create ® Proxy-Object.

                            g.      Choose, for example, URL and then enter the URL you have copied in the following dialog box.

This graphic is explained in the accompanying text

                            h.      Enter the name of a package and a prefix for the proxy to be generated. 

                              i.      Activate the proxy after it has been generated. In the Object Navigator, it will be displayed in the Web Service Library under Client Proxies.

       2.      Create a logical port.

...

                            a.      Call transaction LPCONFIG.

                            b.      Choose the proxy class and enter a name for the logical port.

                            c.      Select the checkbox Default Port.

This graphic is explained in the accompanying text

                            d.      Choose Create.

                            e.      In the following dialog box, reply positively to the question as to whether the logical port is to be the default port.

                              f.      Enter a description of the logical port.

In the tab Call Parameters, the address of the Web service is entered in the URL field.

This graphic is explained in the accompanying text

                            g.      Save and activate the logical port.

For more information, refer to the section Creating a Logical Port.

       2.      Create the client program.

...

                            a.      Call the Object Navigator.

                            b.      Choose Programs ® Create.

                            c.      Enter a program name. Create the program without TOP_Include.

This graphic is explained in the accompanying text

                            d.      In the following dialog box, do not enter any further attributes for the program. Save.

                            e.      Choose the proxy which is to be referred to in the client program and move it to the created program using Drag&Drop.

This graphic is explained in the accompanying text

                              f.      Remove the comment lines and complete the program as follows, for example:

This graphic is explained in the accompanying text

The input of a logical port name is not required since a default port has been chosen fort his example. For more information on binding a Web service, refer to the sections Programming with Client and Server Proxies and Sending a Message.

                            g.      Save and activate the program.

Result

You have successfully bound a Web service into a client program. Choose This graphic is explained in the accompanying text to call the program directly.

 

 

Leaving content frame