Show TOC

Importing Adaptive Web Service ModelsLocate this document in the navigation structure

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.

Context

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

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:
  5. Choose Next and follow the steps in the wizard.

Results

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.