Start of Content Area

Procedure documentation Importing a Web Service Model  Locate the document in its SAP Library structure

Prerequisites

Before you can import a Web service model, you must have already created a Web Dynpro project and a Web Dynpro component.

Additionally, to be able to work with a locally available Web service, it must already have been deployed to the Java Engine of the SAP Web Application Server. Information about creating and deploying Web services is available under Web Services.

Procedure

To import a Web service model, proceed as follows:

       1.      Choose the context menu entry This graphic is explained in the accompanying textCreate Model on the This graphic is explained in the accompanying textModels node of the relevant component.

       2.      In the model wizard, choose Import Web Service Model followed by Next.

       3.      In the second wizard window, enter a model name and specify the package and source code directory. The name of the proxy package is created automatically when you specify the model package.

       4.      Select whether your Web service source is from a local server, is addressed using a URL, or whether it is a UDDI service.

       5.      If you select Local File System or URL, choosing Next will take you to the following window in which you enter a local WSDL URL or select one by choosing Browse.

       6.      If you selected the option UDDI or URL, choosing Next will take you to the following wizard window in which you either enter a WSDL URL of a UDDI service directly or select one by choosing UDDI…

Enter the WSDL description of the Web service in the Wsdl field – for example, http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService for an e-mail service.

You do not need to make any entries in the next step, Proxy Definition / URI Package Mappings. Choose Finish to close the window.

       7.      Switch to the Package Explorer view, select the file lport1.lp in the directory \src\packages\<myPackage>\, and check the port entries.

Result

After the Web service model has been imported, the corresponding entries are displayed under the This graphic is explained in the accompanying textModels node in the Web Dynpro Explorer view. The nodes contained in the model represent the model classes and their relationships to which you can then bind context elements. This structure description is independent of the concrete model implementation (RFC, XML, Web service) of the imported model.

 

End of Content Area