blob: bb553f6dd7b5cabf84e3b482dd8ecb414773b948 [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>Adding an operation</title>
</head>
<body id="taddoper"><a name="taddoper"><!-- --></a>
<h1 class="topictitle1">Adding an operation</h1>
<div><p>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.</p>
<div class="section">Using these, you can declare four transmission primitives that an
endpoint can support:<ul><li> <strong>One-way</strong>. The endpoint receives a message.</li>
<li> <strong>Request-response</strong>. The endpoint receives a message, and sends a
correlated message.</li>
<li> <strong>Solicit-response</strong>. The endpoint sends a message, and receives a
correlated message.</li>
<li> <strong>Notification</strong>. The endpoint sends a message.</li>
</ul>
<p>You can add an operation to a port type or a port binding.</p>
<p>To
add an operation to a port type, follow these steps:</p>
</div>
<ol><li class="stepexpand"><span>In the Graph view, right-click your port type.</span> Click <strong>Add Child
&gt; Operation</strong>.</li>
<li class="stepexpand"><span>In the dialog, enter a name for the operation.</span></li>
<li class="stepexpand"><span>Right click on the operation to add an input, output or fault objects.</span> Depending on an operation's inputs and outputs it can be classified
as follows:<ul><li><strong>One way operation</strong>: input </li>
<li><strong>Request response operation</strong>: input, output </li>
<li><strong> Solicit response operation</strong>: output, input </li>
<li><strong>Notification operation</strong> : output</li>
</ul>
</li>
<li class="stepexpand"><span>Type any information about the operation you wish the user to read
in the <strong>Documentation</strong> pane. </span></li>
</ol>
<div class="section"><p> <strong>Tip</strong>: You can also create a new operation for your port
type using the Outline view.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../tasks/tedtwsdl.html" title="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 Developer products into the workbench and edit them in the WSDL editor.">Editing WSDL files</a></div>
</div>
<div class="linklist"><strong>Related concepts</strong><br />
<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="tedtwsdl.html" title="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 Developer products into the workbench and edit them in the WSDL editor.">Editing WSDL files</a></div></div>
</div>
</body>
</html>