Show TOC Start of Content Area

Procedure documentation Importing Adaptive Web Service Models  Locate the document in its SAP Library structure

Using the Web Dynpro model import wizard, you address a Web Service definition which is available locally or from a UDDI for your Web Dynpro application.

Prerequisites

      You have the Web Dynpro perspective open in the NWDS

      You have the Web Dynpro DC open in the Web Dynpro explorer to which the model is to be imported

      Web Service provider supports the Web Service Inspection Language WSIL. SAPsystems are suitable to provide these services, this is true for ABAP as well as Java back ends.

      Good working knowledge of Java Web Dynpro technology and of Web Service standards defined from the World Wide Web Consortium (W3C), for example the architecture of Web Services in general, or Web Service semantics.

Procedure

       1.      Expand the DC in the Web Dynpro explorer and select Models.

       2.      Using the secondary mouse button, choose Create Model.

       3.      Select the Adaptive Web Service Model as the model type.

       4.      Choose the relevant WSDL source from the following options:

      Enterprise Service Repository. More information: Enterprise Service Repository

      Remote Location / File System. Enter the URL for the WSDL file and wait for the validation message.

...

                            a.      In the next step you can configure a service group.

More information: Configuring Groups of Web Service Clients

                            b.      If you don’t use the service groups, you still can define Logical Destinations.

More information: Configuring Individual Web Service Clients

      Services Registry. More information: Consuming Services with the Services Registry

       5.      Choose Next and follow the steps in the wizard.

Result

In the Web Dynpro Explorer view, the generated Web Service model represented by its model classes becomes visible after the import. The Adaptive Web Service model has a model class for each of the request and response class as a complex type. As a general rule the model creates classes namedRequest_<operationName> and Response_<operationName> which act as containers for the input and output parameters of the corresponding Web Service operation. These classes have no direct correspondence to the complex types defined in the WSDL file. The relations of the request and response model class are created for all model classes corresponding to complex types of Web Service operation parameters. In addition, there is a relation from the request to the response model class for assigning the response model object to the request model object after invocation of the Web Service. On the right-hand side, the model class information is displayed in tab Relations.

More information

Configuring Web Services and Web Service Clients in the SAP NetWeaver Administrator

End of Content Area