blob: e76b95f05635ecc05dfa12829f48952e5d361017 [file] [log] [blame]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../../../default_style.css" type="text/css">
<link rel="stylesheet" href="../../../../../webtools/wtp.css" type="text/css">
<title>jst j2ee</title>
</head>
<body>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<tbody>
<tr>
<td width="60%" align="left"><font class="indextop">WTP Tutorials - Testing the Web Services Project Explorer Integration in the
Web Tools Project</font>
<br>
<font class="indexsub">jst j2ee</font></td><td width="40%"><img width="207" hspace="50" height="129" align="middle" src="../../../../../webtools/images/wtplogosmall.jpg"></td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<col width="16">
<col width="*">
<tbody>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<P>
<B>John Lanuti </B>
<BR>
IBM Rational <BR>
September 17,2005 <BR>
<BR>
<BR>
This tutorial will test the use of the Web Services group in the Project Explorer of the
Eclipse Web Tools Project. <BR>
</P>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">INTERNAL WEB SERVICES</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<OL>
<LI>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. </LI>
<LI>Import the following (lib2.ear) EAR into the workspace: </LI>
<LI>You should now be able to expand the Services group under Web Services
in the navigator. You should see the following:<BR>
<IMG border="0" src="images/Services_.jpg" width="383" height="177"></LI>
<LI>If you expand the LibraryWeb project, you should also be able to see
the service ref under References: <BR>
<IMG border="0" src="images/ServiceRefs.jpg" width="248" height="132"></LI>
<LI>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.</LI>
<LI>Open the web services editor twice, it should only allow one instance
of the editor. </LI>
<LI>If you double click or open the Service Impl, a java editor should open
on the session bean.</LI>
<LI>If you double click or open on the WSDL file, the WSDL editor should
open</LI>
<LI>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.</LI>
<LI>Verify you can see Web Services menu options.</LI>
<LI>Delete the EJB project: LibraryEJB. Make sure the associated entries
are cleared out of the Web Services group.</LI>
<LI>Delete the Web project: LibraryWeb. Make sure the service ref under
clients is removed.</LI>
<LI>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.<BR>
</LI>
</OL>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">EXTERNAL WEB SERVICES</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<OL>
<LI>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: <BR>
<BR>&lt;?xml version='1.0' encoding='UTF-8'?&gt;<BR>
&lt;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/'&gt;<BR>
&lt;service&gt;<BR>
&lt;abstract&gt;Web Services for Validation of US Bank Routing Number&lt;/abstract&gt;<BR>
&lt;description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://soap.achchex.com/exec/btrnsoap.dll/wsdl/IBTRNSOAP'/&gt;<BR>
&lt;description referencedNamespace='http://www.xmethods.net/'&gt;<BR>
&lt;wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:82075453-EBD2-314E-F1A9-BCE4722A30FB'&gt;<BR>
&lt;wsilxmethods:serviceID&gt;282008&lt;/wsilxmethods:serviceID&gt;<BR>
&lt;/wsilxmethods:serviceDetailPage&gt;<BR>
&lt;/description&gt;<BR>
&lt;/service&gt;<BR>
&lt;service&gt;<BR>
&lt;abstract&gt;Hill cipher/decipher&lt;/abstract&gt;<BR>
&lt;description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.quisque.com/fr/chasses/crypto/hill.asmx?WSDL'/&gt;<BR>
&lt;description referencedNamespace='http://www.xmethods.net/'&gt;<BR>
&lt;wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:B1F9EF8B-7009-4A28-AD6B-58F912CABD1B'&gt;<BR>
&lt;wsilxmethods:serviceID&gt;282005&lt;/wsilxmethods:serviceID&gt;<BR>
&lt;/wsilxmethods:serviceDetailPage&gt;<BR>
&lt;/description&gt;<BR>
&lt;/service&gt;<BR>
&lt;service&gt;<BR>
&lt;abstract&gt;Javaportal Web services to simply find italian postcodes, streets and city&lt;/abstract&gt;<BR>
&lt;description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.javaportal.it/kservices/JIPComuni?wsdl'/&gt;<BR>
&lt;description referencedNamespace='http://www.xmethods.net/'&gt;<BR>
&lt;wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:538C68BE-D583-8C27-CF30-A93EE120370B'&gt;<BR>
&lt;wsilxmethods:serviceID&gt;282003&lt;/wsilxmethods:serviceID&gt;<BR>
&lt;/wsilxmethods:serviceDetailPage&gt;<BR>
&lt;/description&gt;<BR>
&lt;/service&gt;<BR>
&lt;service&gt;<BR>
&lt;abstract&gt;eyeVeri provides FREE image verification generation.&lt;/abstract&gt;<BR>
&lt;description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.tilisoft.com/ws/eyeVeri/eyeVeri.asmx?WSDL'/&gt;<BR>
&lt;description referencedNamespace='http://www.xmethods.net/'&gt;<BR>
&lt;wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:5353FAEF-BCA4-84D9-0E3F-912D20D69728'&gt;<BR>
&lt;wsilxmethods:serviceID&gt;281998&lt;/wsilxmethods:serviceID&gt;<BR>
&lt;/wsilxmethods:serviceDetailPage&gt;<BR>
&lt;/description&gt;<BR>
&lt;/service&gt;<BR>
&lt;service&gt;<BR>
&lt;abstract&gt;GeoIPService enables you to easily look up countries by IP address / Context&lt;/abstract&gt;<BR>
&lt;description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.webservicex.com/geoipservice.asmx?WSDL'/&gt;<BR>
&lt;description referencedNamespace='http://www.xmethods.net/'&gt;<BR>
&lt;wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:2479700B-08AE-8146-C6AC-03AAC56C7178'&gt;<BR>
&lt;wsilxmethods:serviceID&gt;281996&lt;/wsilxmethods:serviceID&gt;<BR>
&lt;/wsilxmethods:serviceDetailPage&gt;<BR>
&lt;/description&gt;<BR>
&lt;/service&gt;<BR>
&lt;service&gt;<BR>
&lt;abstract&gt;LocInfo Zip Code provides FREE location information based on data related to US zip code.&lt;/abstract&gt;<BR>
&lt;description referencedNamespace='http://schemas.xmlsoap.org/wsdl/' location='http://www.tilisoft.com/ws/LocInfo/ZipCode.asmx?WSDL'/&gt;<BR>
&lt;description referencedNamespace='http://www.xmethods.net/'&gt;<BR>
&lt;wsilxmethods:serviceDetailPage location='http://www.xmethods.net/ve2/ViewListing.po?key=uuid:652704A2-7742-29E4-47A3-E99084CC28CF'&gt;<BR>
&lt;wsilxmethods:serviceID&gt;281987&lt;/wsilxmethods:serviceID&gt;<BR>
&lt;/wsilxmethods:serviceDetailPage&gt;<BR>
&lt;/description&gt;<BR>
&lt;/service&gt;<BR>
&lt;/inspection&gt;</LI>
<BR>
<BR>
<LI>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.<BR>
</LI>
</OL>
</td>
</tr>
</tbody>
</table>
</body>
</html>