Skip to main content
summaryrefslogtreecommitdiffstats
blob: 9cf503ce58f78e5a3ca51704e09f6231e5acd354 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Testing WSDL documents and Web services using the WSDL Explorer" />
<meta name="abstract" content="WSDL documents allow developers to expose their applications as network-accessible services on the Internet. Through UDDI and WSIL, other applications can discover WSDL documents and bind with them to execute transactions or perform other business processes. The Web Services Explorer allows you to explore, import, and test WSDL documents." />
<meta name="description" content="WSDL documents allow developers to expose their applications as network-accessible services on the Internet. Through UDDI and WSIL, other applications can discover WSDL documents and bind with them to execute transactions or perform other business processes. The Web Services Explorer allows you to explore, import, and test WSDL documents." />
<meta content="WSDL, testing with the Web Services Explorer, Web services" name="DC.subject" />
<meta content="WSDL, testing with the Web Services Explorer, Web services" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.jst.ws.doc.user/concepts/cwsinwsa.html" />
<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.jst.ws.doc.user/concepts/cws.html" />
<meta scheme="URI" name="DC.Relation" content="../concepts/cuddi.html" />
<meta scheme="URI" name="DC.Relation" content="tuddiexp.html" />
<meta scheme="URI" name="DC.Relation" content="tstrtexp.html" />
<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.jst.ws.doc.user/tasks/toverws.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="ttestwsdl" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Using the WSDL Explorer</title>
</head>
<body id="ttestwsdl"><a name="ttestwsdl"><!-- --></a>


<h1 class="topictitle1">Testing WSDL documents and Web services using the WSDL Explorer</h1>




<div><p>WSDL documents allow developers to expose their applications as
network-accessible services on the Internet. Through UDDI and WSIL, other
applications can discover WSDL documents and bind with them to execute transactions
or perform other business processes. The Web Services Explorer allows you
to explore, import, and test WSDL documents.</p>

<div class="p">Prerequisites: To use the WSDL Explorer:<ul>
<li>You must have a valid URL for a WSDL document.</li>

<li>You must launch the Web Services Explorer: <a href="tstrtexp.html">Launch the Web Services Explorer</a></li>

</ul>
</div>

<div class="section"><p>The WSDL Explorer allows you to explore, and test WSDL documents.
For more information on exploring WSDL documents using the WSDL Explorer,
refer to <a href="twsdlexp.html">Using the WSDL Explorer</a> .</p>
<p>To
test a Web service using the WSDL Explorer:</p>
</div>

<ol>
<li class="stepexpand"><span>To launch the WSDL Explorer, complete the following steps:</span>
<ol type="a">
<li><span>In the Web Services Explorer, switch to the WSDL Explorer by
clicking the icon in the upper right-hand corner  <img src="../images/wsdlicon.gif" alt="Icon to launch the WSDL Explorer" />. </span></li>

</ol>

</li>

<li class="stepexpand"><span>Select WSDL Main in the Navigator pane, enter or browse to an existing
WSDL URL in the right-hand pane, and click  <strong>Go</strong>. For this example the
WSDL being used is a Web Service which converts temperature from Celsius to
Fahrenheit or Fahrenheit to Celsius.   <br /><img src="../images/wsdltemp.gif" alt="Screen capture of the WSDL Main pane of the Web Services Explorer" /><br />  The following nodes
will be added to the WSDL tree: </span> <ul>
<li>The WSDL node:  <img src="../images/wsdlnode.gif" alt="WSDL node icon" /></li>

<li>The service node (which represents a service element within the WSDL file):
 <img src="../images/servnode.gif" alt="Service node icon" /></li>

<li>The binding node:  <img src="../images/bindnode.gif" alt="Binding node icon" /></li>

<li>The operation node:  <img src="../images/opnode.gif" alt="Operation node icon" /></li>

</ul>
</li>

<li class="stepexpand"><span>In the WSDL Binding Details pane, click the operation (in this
example the  <tt class="sysout">CtoF</tt> operation) to display: </span>
 <ul>
<li>A drop-down list with the endpoints available for this operation</li>

<li>Fields for each of the parameters of this operation (in this example the
 <tt class="sysout">temp</tt> parameter) and the type of information
the parameter is looking for (in this example  <tt class="sysout">temp</tt> is
requesting an integer).<br /><img src="../images/wsdlop.gif" alt="Invoke a WSDL Operation pane of the Web Services Explorer" /><br />  The Form view allows
you to enter the parameters for the Web service operation call. Parameters
names are displayed as links whose action is to display a dialog describing
embedded XML Schema Definition Language (XSD) information. More information
about XSD can be found here:  <a href="http://www.eclipse.org/xsd/">http://www.eclipse.org/xsd/</a> 
 <br /><img src="../images/scenario7.gif" alt="Screen capture of the XSD Information Dialog" /><br />  </li>

</ul>
</li>

<li class="stepexpand"><span>Enter your integer and click  <strong>Go</strong>. The result is returned
in the Status pane.   <br /><img src="../images/wsdlopret.gif" alt="Screen capture of an invoked WSDL operation showing the result in the Status pane" /><br />  </span></li>

<li class="stepexpand"><span>If you are using SOAP as your binding method, clicking Source or
Form in the upper right-hand corner will toggle the display between the Form
view (shown above) and the Source view, which displays the SOAP message in
the XML format. You can also enter the same information as in the form, only
in XML format (this is suggested for advanced users only). The Explorer does
validate the XML if you modify it, but not the parameter values you enter.
 <br /><img src="../images/wsdlopretx.gif" alt="Source view of the Invoke a WSDL Operation pane." /><br /></span></li>

<li class="stepexpand"><span>If you are using SOAP as your binding type, you will also have
the option of toggling the Status pane between the Source and Form views.
The Source view shows the SOAP request and response envelopes, including the
parameters you have entered to test the service and the returned value.   <br /><img src="../images/wsdlstatx.gif" alt="Screen capture of the source view of the SOAP request and response envelopes" /><br /> </span></li>

</ol>

</div>

<div>
<div class="linklist"><strong>Related Concepts</strong><br />

<div><a href="../../org.eclipse.jst.ws.doc.user/concepts/cwsinwsa.html"> Tools for Web services development</a></div>
<div><a href="../../org.eclipse.jst.ws.doc.user/concepts/cws.html">Web services development</a></div>
<div><a href="../concepts/cuddi.html" title="Universal Description, Discovery, and Integration (UDDI) specification defines a way to publish and discover information about Web services.">Universal Description, Discovery, and Integration (UDDI)</a></div></div>

<div class="linklist"><strong>Related Tasks</strong><br />

<div><a href="tuddiexp.html" title="Through UDDI and WSIL, other applications can discover WSDL documents and bind with them to execute transactions or perform other business processes.">Publishing Web services and business entities</a></div>
<div><a href="tstrtexp.html" title="The Web services tools allows you to launch the Web Services Explorer in several ways.">Launching the Web Services Explorer</a></div>
<div><a href="../../org.eclipse.jst.ws.doc.user/tasks/toverws.html"> Developing Web services</a></div></div>
</div>

</body>
</html>

Back to the top