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 create a Web Dynpro model from a Web Service definition. The Web Service definition can be from any one of the following sources:

·        Local system or remote system

·        Enterprise Service Repository

·        Service Registry

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. SAP systems 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.

...

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

More information: Configuring Groups of Web Service Clients

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

More information: Configuring Individual Web Service Clients

¡        Services Registry

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

Result

The Adaptive Web Service model is listed in the Web Dynpro Explorer under the Models node after the import. The Adaptive Web Serice model contains model classes including the request and the response model class. As a general rule the model classes created are Request_<operationName> and Response_<operationName>, which acts as containers for the input and output parameters of the corresponding Web Service operation.

The relations between different model classes also appears as nodes under model classes in the explorer. There is always a relation between the request and the response class. If Adaptive Web Service model was imported using the service group, the Connectivity node appears showing the service groups and service references.

More information

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

End of Content Area