blob: 5ded8328d79e998744a980cbb82ad40138e6ed73 [file] [log] [blame]
<?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>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Editing WSDL files</title>
</head>
<body id="tedtwsdl"><a name="tedtwsdl"><!-- --></a>
<h1 class="topictitle1">Editing WSDL files</h1>
<div><p>Once you have created a WSDL file, you can edit it in the WSDL
editor. You can also import WSDL files you have created outside Rational<sup>®</sup> Developer
products into the workbench and edit them in the WSDL editor.</p>
<div class="section"><p>To open a WSDL file in the WSDL editor, double-click it in the
Navigator view or right-click it and click <strong>Open With &gt; WSDL Editor.</strong></p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="../tasks/taddsrvc.html">Adding a service</a></strong><br />
The <tt class="sysout">service</tt> element is a collection
of related ports and specifies the location of the service.</li>
<li class="ulchildlink"><strong><a href="../tasks/taddport.html">Adding a port to a service</a></strong><br />
A port defines an individual endpoint by specifying a single address
for a binding. The port contains a 'binding' attribute that references a binding
and an address element that provides a specification for the endpoint.</li>
<li class="ulchildlink"><strong><a href="../tasks/tsetprtt.html">Setting a port type</a></strong><br />
A port type is a named set of abstract operations and the abstract
messages involved. Each operation refers to an input message and output messages.
A port type is reference by a binding object. Each binding references exactly
one port type. Since each port refers to exactly one binding, each port has
exactly one port type.</li>
<li class="ulchildlink"><strong><a href="../tasks/tsetbind.html">Setting a binding</a></strong><br />
A binding is a top level WSDL object that provides a concrete specification
regarding the transmission of messages to and from a web service. A binding
references exactly one port type. The structure of a binding corresponds very
closely to that of the port type. The binding contains extensibility elements
(for example, soap, http, and mime) that specify protocol specific details.
Each port within a service references exactly one binding.</li>
<li class="ulchildlink"><strong><a href="../tasks/taddoper.html">Adding an operation</a></strong><br />
An operation names the operation and lists the expected inputs
and outputs. The operation element may also contain a fault sub-element that
describes any error data the operation may return.</li>
<li class="ulchildlink"><strong><a href="../tasks/taddmess.html">Adding a message</a></strong><br />
Messages represent an abstract definition of the data being transmitted.
A message consists of logical parts, each of which is associated with a definition
within some type system. WSDL messages are top level objects that can be referenced
by an operation's input, output and fault elements (within a port type).</li>
<li class="ulchildlink"><strong><a href="../tasks/taddpart.html">Adding a part to a message</a></strong><br />
All messages contain one or more parts. Parts are a flexible mechanism
for describing the logical abstract content of a message. The message definition
associates each part with a type using a message-typing attribute.</li>
<li class="ulchildlink"><strong><a href="../tasks/tcrtimpt.html">Creating an import statement</a></strong><br />
The import statement is used to import other WSDL documents or
XML schemas into your WSDL document. This enables you to have more modular
WSDL documents. The use of the <strong>import</strong> statement allows the separation
of the different elements of a service definition into independent documents,
which can then be imported as needed. This technique helps in writing clearer
service definitions, by separating the definitions according to their level
of abstraction.</li>
<li class="ulchildlink"><strong><a href="../tasks/tcrttype.html">Creating a new type for your WSDL file</a></strong><br />
Types describe all the data types used between the client and server.
WSDL is not tied exclusively to a specific typing system, but it uses the
W3C XML Schema specification as its default choice.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../concepts/cwsdled.html" title="The WSDL editor allows you to easily and graphically create, modify, view, and validate WSDL files.">Editing WSDL files with the WSDL Editor</a></div>
</div>
</div><div class="nested1" id="editisourceview"><a name="editisourceview"><!-- --></a><h2 class="topictitle2">Editing in the Source view</h2>
<div><div class="section">To edit a WSDL file in the Source view, follow these steps:</div>
<ol><li><span>Open your WSDL file in the WSDL editor.</span></li>
<li><span>Click the <strong>Source</strong> tab.</span></li>
<li><span>Select the source code you want to edit.</span></li>
</ol>
<div class="section"><p>At any time, you can switch to the Source view to review the source
for the WSDL file. You can also edit your WSDL file directly in the Source
view.</p>
</div>
</div>
</div>
<div class="nested1" id="editeditview"><a name="editeditview"><!-- --></a><h2 class="topictitle2">Editing in the Graph view</h2>
<div><div class="section"><p>The Graph view provides a graphical way to browse and edit your
WSDL file. Each type of top level wsdl object is shown within a group (e.g.
service, port type, message). Within each group is a tree view that can be
used to browse the structure of the object. The service, binding, port type
and message groups are 'linked'. If for example we select an input in the
port types, we'll notice that the message that is referenced by this message
is scrolled into view in the messages group. A line displays to denote a reference
(or association) between these objects.</p>
<p> <br /><img src="../images/wsdleditor.gif" alt="Image of a WSDL file open in the WSDL editor" /><br /> </p>
</div>
</div>
</div>
<div class="nested1" id="showbndgraph"><a name="showbndgraph"><!-- --></a><h2 class="topictitle2">Showing Bindings in the Graph view</h2>
<div><div class="section">By default bindings are shown in the Graph View. Select the show/hide
binding button at the top left of the Graph View to hide the bindings. With
the bindings hidden a service can be browsed from a purely abstract level
without showing binding information. When the need arises to understand the
concrete details represented by the binding, select the show/hide binding
button again to make them visible.</div>
</div>
</div>
<div class="nested1" id="editoutlineview"><a name="editoutlineview"><!-- --></a><h2 class="topictitle2">Editing in the Outline view</h2>
<div><div class="section"><p>The Outline view will show you all the items in your WSDL file
as you add them. In this view, you can both create and delete WSDL components.</p>
<p>The
Outline view contains the following folders you can use (by right-clicking
and selecting the appropriate option) to edit your WSDL file:</p>
<ul><li> <strong>Imports</strong> statements, which are used to associate a namespace
with a document location.</li>
<li> <strong>Types</strong>, which provide data type definitions used to describe the
messages exchanged.  You cannot edit any types directly using this folder.</li>
<li> <strong>Messages</strong>, which represent an abstract definition of the data being
transmitted. A message consists of logical parts, each of which is associated
with a definition within some type system.</li>
<li> <strong>Port Types</strong>, which are a set of abstract operations. Each operation
refers to an input message and output messages.</li>
<li> <strong>Bindings</strong>, which specify concrete protocol and data format specifications
for the operations and messages defined by a particular port type.</li>
<li> <strong>Services</strong>, which are used to aggregate a set of related ports <img src="../images/show-hide-binding.gif" alt="" /> </li>
</ul>
</div>
</div>
<div>
<div class="linklist"><strong>Related concepts</strong><br />
<div><a href="../../org.eclipse.jst.ws.doc.user/concepts/cwsdl.html">WSDL</a></div>
<div><a href="../concepts/cwsdled.html" title="The WSDL editor allows you to easily and graphically create, modify, view, and validate WSDL files.">Editing WSDL files with the WSDL Editor</a></div></div>
<div class="linklist"><strong>Related tasks</strong><br />
<div><a href="tcrtwsdl.html" title="You can create a new, empty WSDL file, then edit it using the WSDL editor.">Creating a new WSDL file</a></div>
<div><a href="timpwsdl.html">Importing a WSDL file</a></div></div>
</div></div>
</body>
</html>