WTP Tutorials - Testing the Web Services Project Explorer Integration in the Web Tools Project
jst j2ee
WTP LogoWTP Home
 

John Lanuti
IBM Rational
September 17,2005


This tutorial will test the use of the Web Services group in the Project Explorer of the Eclipse Web Tools Project.

INTERNAL WEB SERVICES
 
  1. Open the J2EE Perspective and try to expand the Web Services Group. For an empty workspace, you should see the two folders,one for web services instances and one for any web service clients.
  2. Import the following (lib2.ear) EAR into the workspace:
  3. You should now be able to expand the Services group under Web Services in the navigator. You should see the following:
  4. If you expand the LibraryWeb project, you should also be able to see the service ref under References:
  5. If you right click on the Library Service web service level, and say "Open", the Web Services editor should open. Double clicking should do the same.
  6. Open the web services editor twice, it should only allow one instance of the editor.
  7. If you double click or open the Service Impl, a java editor should open on the session bean.
  8. If you double click or open on the WSDL file, the WSDL editor should open
  9. In the clients section, if you double click the service ref, LibraryService, the DD should open where that service ref is, in this case the LibraryWeb project DD.
  10. Verify you can see Web Services menu options.
  11. Delete the EJB project: LibraryEJB. Make sure the associated entries are cleared out of the Web Services group.
  12. Delete the Web project: LibraryWeb. Make sure the service ref under clients is removed.
  13. Hit the filters tab on the navigator and check the web services filter to hide web services. Ensure all web service content is removed from the navigator.
EXTERNAL WEB SERVICES
 
  1. External web services are defined as those referenced by a .WSIL file. They will also be added to the Services list. Add the following text to a wsil file called inspection.wsil. Drag the file to the LibraryWeb project anywhere under META-INF or WEB-INF:

    <?xml version='1.0' encoding='UTF-8'?>
    <inspection xmlns='http://schemas.xmlsoap.org/ws/2001/10/inspection/' xmlns:wsiluddi='http://schemas.xmlsoap.org/ws/2001/10/inspection/uddi/' xmlns:wsilxmethods='http://schemas.xmethods.net/ws/2001/10/inspection/'>
    <service>
    <abstract>Web Services for Validation of US Bank Routing Number</abstract>
    <description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://soap.achchex.com/exec/btrnsoap.dll/wsdl/IBTRNSOAP'/>
    <description referencedNamespace='http://www.xmethods.net/'>
    <wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:82075453-EBD2-314E-F1A9-BCE4722A30FB'>
    <wsilxmethods:serviceID>282008</wsilxmethods:serviceID>
    </wsilxmethods:serviceDetailPage>
    </description>
    </service>
    <service>
    <abstract>Hill cipher/decipher</abstract>
    <description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.quisque.com/fr/chasses/crypto/hill.asmx?WSDL'/>
    <description referencedNamespace='http://www.xmethods.net/'>
    <wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:B1F9EF8B-7009-4A28-AD6B-58F912CABD1B'>
    <wsilxmethods:serviceID>282005</wsilxmethods:serviceID>
    </wsilxmethods:serviceDetailPage>
    </description>
    </service>
    <service>
    <abstract>Javaportal Web services to simply find italian postcodes, streets and city</abstract>
    <description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.javaportal.it/kservices/JIPComuni?wsdl'/>
    <description referencedNamespace='http://www.xmethods.net/'>
    <wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:538C68BE-D583-8C27-CF30-A93EE120370B'>
    <wsilxmethods:serviceID>282003</wsilxmethods:serviceID>
    </wsilxmethods:serviceDetailPage>
    </description>
    </service>
    <service>
    <abstract>eyeVeri provides FREE image verification generation.</abstract>
    <description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.tilisoft.com/ws/eyeVeri/eyeVeri.asmx?WSDL'/>
    <description referencedNamespace='http://www.xmethods.net/'>
    <wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:5353FAEF-BCA4-84D9-0E3F-912D20D69728'>
    <wsilxmethods:serviceID>281998</wsilxmethods:serviceID>
    </wsilxmethods:serviceDetailPage>
    </description>
    </service>
    <service>
    <abstract>GeoIPService enables you to easily look up countries by IP address / Context</abstract>
    <description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.webservicex.com/geoipservice.asmx?WSDL'/>
    <description referencedNamespace='http://www.xmethods.net/'>
    <wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:2479700B-08AE-8146-C6AC-03AAC56C7178'>
    <wsilxmethods:serviceID>281996</wsilxmethods:serviceID>
    </wsilxmethods:serviceDetailPage>
    </description>
    </service>
    <service>
    <abstract>LocInfo Zip Code provides FREE location information based on data related to US zip code.</abstract>
    <description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.tilisoft.com/ws/LocInfo/ZipCode.asmx?WSDL'/>
    <description referencedNamespace='http://www.xmethods.net/'>
    <wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:652704A2-7742-29E4-47A3-E99084CC28CF'>
    <wsilxmethods:serviceID>281987</wsilxmethods:serviceID>
    </wsilxmethods:serviceDetailPage>
    </description>
    </service>
    </inspection>


  2. You should see the view as above with new web services, except for externals we only show the WSDL file under the service. You should be able to double click the WSDL and have it open in the web browser.