Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Using Web Service Explorer to test a Web service"

 
(7 intermediate revisions by 2 users not shown)
Line 6: Line 6:
  
 
{| width="100%" cellspacing="5" cellpadding="2"
 
{| width="100%" cellspacing="5" cellpadding="2"
| valign="top" | '''By Kathy Chan'''<br /> December 22, 2005 <br /><br />
+
| valign="top" | '''By Kathy Chan'''<br /> June 23, 2008 <br /><br />
 
|-
 
|-
 
| colspan="2" bgcolor="#0080c0" align="left" valign="top" | ''' <font color="#ffffff" face="Arial,Helvetica">Introduction</font>'''
 
| colspan="2" bgcolor="#0080c0" align="left" valign="top" | ''' <font color="#ffffff" face="Arial,Helvetica">Introduction</font>'''
Line 12: Line 12:
 
| valign="top" | <br />
 
| valign="top" | <br />
 
|-
 
|-
| valign="top" | This document is one of a series of tutorials to demonstrate the use of the Web Services tools in the Web Tools Platform Project using a '''WTP 1.0 driver'''.
+
| valign="top" | This document is one of a series of tutorials to demonstrate the use of the Web Services tools in the Web Tools Platform Project using a WTP drivers (it works with WTP 1.5.x, WTP 2.0.x, 3.0.x, and WTP 3.2).
 
|-
 
|-
 
| valign="top" |
 
| valign="top" |
This tutorial shows how to use the Web Service Explorer to test a Web service via native WSDL and SOAP. It demonstrates how to use the Web Services Explorer to invoke operations on a Web service named " [http://www.xmethods.net/ve2/ViewListing.po;jsessionid=0G-Gfc2ErUGlADxkgZE84pcE(QHyMHiRM)?key=uuid:889A05A5-5C03-AD9B-D456-0E54A527EDEE Delayed Stock Quote ]" as available from [http://www.xmethods.net/ XMethods] on the internet.
+
This tutorial shows how to use the Web Service Explorer to test a Web service via native WSDL and SOAP. It demonstrates how to use the Web Services Explorer to invoke operations on a Web service named " [http://www.xmethods.net/ve2/ViewListing.po?key=uuid:BF3EFCDD-FCD4-8867-3AAC-068985E7CB89 Romulan Numbers XLII ]" as available from [http://www.xmethods.net/ XMethods] on the internet.
 
|-
 
|-
 
| valign="top" | The only prerequisite is that you be connected to the internet. If you are connected via a firewall, you can use the Internet preferences page (choose '''Preferences -> Internet''' from the main menu). Otherwise, you can begin with a completely fresh workspace and no installed servers.
 
| valign="top" | The only prerequisite is that you be connected to the internet. If you are connected via a firewall, you can use the Internet preferences page (choose '''Preferences -> Internet''' from the main menu). Otherwise, you can begin with a completely fresh workspace and no installed servers.
Line 33: Line 33:
 
# In the '''WSDL URL''' field, enter the URL <tt>http://www.ebob42.com/cgi-bin/Romulan.exe/wsdl/IRoman </tt>, then click on '''Go''' . Result: <br />[[Image:wse_romanConvert.JPG]]
 
# In the '''WSDL URL''' field, enter the URL <tt>http://www.ebob42.com/cgi-bin/Romulan.exe/wsdl/IRoman </tt>, then click on '''Go''' . Result: <br />[[Image:wse_romanConvert.JPG]]
 
# Under '''Operations''' in the right hand pane, click on '''IntToRoman'''. Result: <br />[[Image:wse_romanConvertIntToRoman.JPG]]
 
# Under '''Operations''' in the right hand pane, click on '''IntToRoman'''. Result: <br />[[Image:wse_romanConvertIntToRoman.JPG]]
# In the '''symbol String''' entry field, enter <tt>ibm</tt>, then click on '''Go''' . In the '''Status''' pane, you should see an answer like this: <br />'''return (float): 79.28'''You may need to move the horizontal bar separating the '''Actions''' and '''Status''' panes upwards a bit to get a better view. Result:<br />[[Image:wse_stockprice.JPG]]
+
# In the '''Int int''' entry field, enter <tt>9</tt>, then click on '''Go''' . In the '''Status''' pane, you should see an answer like this: <br />'''return (String) IX
|-
+
| colspan="2" bgcolor="#0080c0" align="left" valign="top" | ''' <font color="#ffffff" face="Arial,Helvetica">Explanation</font>'''
+
|-
+
| valign="top" | <br />
+
|-
+
| valign="top" | The Web Services Explorer is a JSP Web application hosted on the Apache Tomcat servlet engine contained within Eclipse. It is integrated into Eclipse on two levels: visually by virtue of it running in the embedded browser, and logically by virtue of it running as a thread in the Eclipse JRE. Though not demonstrated in this scenario, this latter type of integration allows the Web Services Explorer to access resources in the workspace, write resources into the workspace, and launch various Web services wizards.
+
|-
+
| valign="top" | The Web Services Explorer provides three key services to the user:
+
|-
+
| valign="top" |
+
# Comprehensive support for discovering Web services in WS-Inspection 1.0 documents, and in UDDI v2 or v3 registries using the UDDI v2 protocol.
+
# Comprehensive support for publishing Web services to UDDI v2 or v3 registries using the UDDI v2 protocol.
+
# Comprehensive support for browsing and invoking Web services natively via their WSDL and XSD.
+
 
|-
 
|-
 
| valign="top" |
 
| valign="top" |
 
[[Image:note.gif|Note: ]]<br /> A key point of the scenario above is that no code was generated and no servers were required in order to invoke operations on the WSDL
 
[[Image:note.gif|Note: ]]<br /> A key point of the scenario above is that no code was generated and no servers were required in order to invoke operations on the WSDL
 
|}
 
|}

Latest revision as of 10:29, 13 May 2010

Using Web Service Explorer to test a Web service

Wtplogosmall.png

By Kathy Chan
June 23, 2008

Introduction

This document is one of a series of tutorials to demonstrate the use of the Web Services tools in the Web Tools Platform Project using a WTP drivers (it works with WTP 1.5.x, WTP 2.0.x, 3.0.x, and WTP 3.2).

This tutorial shows how to use the Web Service Explorer to test a Web service via native WSDL and SOAP. It demonstrates how to use the Web Services Explorer to invoke operations on a Web service named " Romulan Numbers XLII " as available from XMethods on the internet.

The only prerequisite is that you be connected to the internet. If you are connected via a firewall, you can use the Internet preferences page (choose Preferences -> Internet from the main menu). Otherwise, you can begin with a completely fresh workspace and no installed servers.

Using the Web Services Explorer to test a Web service

  1. Launch the Eclipse WTP workbench.
  2. From the main menu bar, select Run -> Launch the Web Services Explorer. This will take a few moments the first time while Eclipse's internal Tomcat server starts up and loads the Web Services Explorer application.
  3. After the Web Browser view opens, maximize it. Result:
    Wse uddi.JPG
  4. In the Web Service Explorer's toolbar (top-right), click on the WSDL Page icon,
    Wsdl.jpg
  5. Click on the Wsdl main.gif WSDL Main icon. Result:
    Wse wsdl.JPG
  6. In the WSDL URL field, enter the URL http://www.ebob42.com/cgi-bin/Romulan.exe/wsdl/IRoman , then click on Go . Result:
    Wse romanConvert.JPG
  7. Under Operations in the right hand pane, click on IntToRoman. Result:
    Wse romanConvertIntToRoman.JPG
  8. In the Int int entry field, enter 9, then click on Go . In the Status pane, you should see an answer like this:
    return (String) IX

Note:
A key point of the scenario above is that no code was generated and no servers were required in order to invoke operations on the WSDL

Back to the top