blob: 2fec4c7a60db1e87f0323dc64bc93dd051f1db9e [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 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, 2008 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, 2008" />
<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="Setting a port type" />
<meta name="abstract" content="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 referenced 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." />
<meta name="description" content="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 referenced 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." />
<meta content="WSDL files, setting port types, Web services" name="DC.subject" />
<meta content="WSDL files, setting port types, Web services" name="keywords" />
<meta content="XHTML" name="DC.Format" />
<meta content="tsetprtt" 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>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 referenced 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 in any blank space
in the Design view and selecting <span class="uicontrol">Add PortType</span>. As a
convenience you can also add a port type via a binding. This allows you to
create a port type and modify the binding to reference 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 class="nested1" id="createporttype"><a name="createporttype"><!-- --></a>
<h2 class="topictitle2">Create a new port type for a binding</h2>
<div>
<div class="section"><p>If you want to create a new port type for your binding, complete
the following steps:</p>
</div>
<ol>
<li class="stepexpand"><span>In the Design view, right-click on a binding object (note that
port must reference a binding) and click <strong>Set PortType &gt; New PortType</strong>.</span>
</li>
<li class="stepexpand"><span>Type the name of the port type in the <strong>Name</strong> field and click <strong>OK</strong>.</span>
The name should be unique name among all port types defined within in
the enclosing WSDL document. To select the new port type, click the port type
object.</li>
<li class="stepexpand"><span>In the Properties view, type any information about the port type
you wish the user to read in the <strong>Documentation</strong> pane.</span></li>
</ol>
<div class="section"> <div class="tip"><span class="tiptitle">Tip:</span> You can also create a new port type for your binding
using the Outline view.</div>
<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, complete the
following steps:</p>
</div>
<ol>
<li><span>In the Design view, right-click on a binding object (note that
port must reference a binding) and click <strong>Set Port Type &gt; Existing PortType</strong>.</span>
</li>
<li><strong>Optional: </strong><span>In the <strong>Name</strong> field, type a search string
to filter the list or leave the field blank to view all.</span></li>
<li><span>You can change the scope of the list by selecting one of the following
options:</span>
<ul>
<li><strong>Workspace</strong>: lists the port types available in your workspace.</li>
<li><strong>Enclosing Project</strong>: lists the port types available in the project
that contains your file.</li>
<li><strong>Current Resource</strong>: lists the port types available in your current
file.</li>
<li><strong>Working Sets</strong>: lists the port types available in a specified
set of files. To specify a working set, click <strong>Choose</strong>. You can select
files from an existing working set or create a new working set. Once you have
selected the files, click <strong>OK</strong>.</li>
</ul>
</li>
<li><span>The existing port types will be listed. Select one and click <strong>OK</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,
complete the following steps:</p>
</div>
<ol>
<li><span>In the Design view, right-click on a binding object (note that
port must reference a binding) and click <strong>Set Port Type &gt; Existing PortType.</strong></span>
</li>
<li><strong>Optional: </strong><span>In the <strong>Name</strong> field, type a search string
to filter the list or leave the field blank to view all.</span></li>
<li><span>You can import a port type by selecting one of the following options:</span>
<ul>
<li><strong>Workspace</strong>: lists the port types available in your workspace.</li>
<li><strong>Enclosing Project</strong>: lists the port types available in the project
that contains your file.</li>
<li><strong>Working Sets</strong>: lists the port types available in a specified
set of files. To specify a working set, click <strong>Choose</strong>. You can select
files from an existing working set or create a new working set. Once you have
selected the files, click <strong>OK</strong>.</li>
</ul>
</li>
<li><span>The port types will be listed. Select one and click <strong>OK</strong>.
In the Design view, click the port type object.</span></li>
<li><span>In the Properties view, type any information about the port type
you wish the user to read in the <strong>Documentation</strong> pane.</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 into the workbench and edit them in the WSDL editor.">Editing WSDL files</a></div></div>
</div>
</div>
</body>
</html>