| <?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>Setting a port type</title> |
| </head> |
| <body id="tsetprtt"><a name="tsetprtt"><!-- --></a> |
| |
| <h1 class="topictitle1">Setting a port type</h1> |
| <div><p>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.</p> |
| <div class="section"><p>You can create a port type by right clicking on the port types |
| group and selecting <span class="uicontrol">Add Child > portType</span> . As a convenience |
| you can also add a port type via a binding or port object. This allows you |
| to create a port type and modify the binding to reference to the new port |
| type in one action. You can either create a new port type for your binding, |
| re-use an existing one, or import one</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><div class="nested1" id="createporttype"><a name="createporttype"><!-- --></a><h2 class="topictitle2">Create a new port type</h2> |
| <div><div class="section"><p>If you want to create a new port type for your binding, follow |
| these steps:</p> |
| </div> |
| <ol><li class="stepexpand"><span>In the Graph view, right-click on a binding or port object (note |
| that port must reference a binding) and click <strong>Set Port Type.</strong></span></li> |
| <li class="stepexpand"><span>Click the <strong>Create a new port type</strong> radio button.</span></li> |
| <li class="stepexpand"><span>Type the name of the port type in the <strong>Name of port type</strong> field.</span> The name should be unique name among all port types defined within in |
| the enclosing WSDL document. Click <strong>Finish</strong>.</li> |
| <li class="stepexpand"><span>Click the port type. Type any information about the port type |
| you wish the user to read in the </span> <strong>Documentation</strong> field. </li> |
| </ol> |
| <div class="section"><p> <strong>Tip</strong>: You can also create a new port type for your binding |
| using the Outline view.</p> |
| <p>Once you have created a port type, you can add |
| operations to it, which can send and receive messages.</p> |
| </div> |
| </div> |
| </div> |
| <div class="nested1" id="reuseporttype"><a name="reuseporttype"><!-- --></a><h2 class="topictitle2">Reuse a port type for a binding</h2> |
| <div><div class="section"><p>If you want to reuse a port type for your binding, follow these |
| steps:</p> |
| </div> |
| <ol><li><span>In the Graph view, right-click on a binding or port object (note |
| that port must reference a binding) and click <strong>Set Port Type.</strong></span></li> |
| <li><span>Click the <strong>Select an existing port type</strong> radio button.</span></li> |
| <li><span>The existing bindings will be listed. Select one and click <strong>Finish</strong>.</span></li> |
| </ol> |
| </div> |
| </div> |
| <div class="nested1" id="importporttype"><a name="importporttype"><!-- --></a><h2 class="topictitle2">Import a port type for a binding</h2> |
| <div><div class="section"><p>.If you want to import an existing port type for your binding, |
| follow these steps:</p> |
| </div> |
| <ol><li><span>In the Graph view, right-click on a binding or port object (note |
| that port must reference a binding) and click <strong>Set Port Type.</strong></span></li> |
| <li><span>Click the <strong>Import port type from a file</strong> radio button. Click |
| <strong>Browse</strong>.</span></li> |
| <li><span>Select the file that contains the port type you want to use. Click |
| <strong>OK</strong>.</span></li> |
| <li><span>The bindings in the file will be listed. Select one and click <strong>Finish</strong>.</span></li> |
| <li><span>Click the port type. Type any information about the port type |
| you wish the user to read in the <strong>Documentation</strong> field.</span></li> |
| </ol> |
| </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></div> |
| |
| </body> |
| </html> |