< Previous | Next >

Copy the Web service file

One use for the new library is to contain the endpoint WSDL file for the supplied Web service you want to invoke.

To copy the Web service file into the library:

  1. In the Business Integration view, expand the HelloService project, and then the Web Service Ports category.
  2. Right-click HelloServiceExport_HelloServiceHttpPort and select Show Files. This action gives focus to the Physical Resources view. This view shows the underlying files in your projects.
  3. Right-click the file HelloService_HelloService.wsdl, and select Copy. This action places the WSDL file in the clipboard.
  4. Return to the Business Integration view. Right-click HelloWorldLibrary and select Paste. This copies the WSDL file into your library project.
  5. Collapse the HelloService project because you do not need to see it anymore, and expand the HelloWorldLibrary project. Then expand its Interface and Web Service Ports categories to see what has been copied in from that WSDL file, as shown here:
    Business Integration view showing HelloWorldLibrary
    Note: When you have your own existing Web service, you can similarly copy it to a library or module project by using the clipboard or by dragging and dropping it from the Windows file system, or by using File > Import > Business Integration > WSDL/Interface. The latter option is suggested for more complicated WSDL files that include references to other files.
    Note: You might be wondering what the annotation is on the upper right of the icons for the interface and port. This annotation indicates that the interface and port are part of a WSDL file that contains multiple objects that can be extracted by right-clicking and selecting Refactor > Extract WSDL Components. However, you do not need to perform that task in this sample.





Feedback



(C) Copyright IBM Corporation 2007, 2008. All Rights Reserved.

< Previous | Next >