blob: 579b6eefea40e5bf2830000b3295fd98bd43b45a [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 a part to a message</title>
</head>
<body id="taddpart"><a name="taddpart"><!-- --></a>
<h1 class="topictitle1">Adding a part to a message</h1>
<div><p>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.</p>
<div class="section"><p>To add a part to a message, follow these steps:</p>
</div>
<ol><li class="stepexpand"><span>In Graph view, select the message you want to add a part to.</span></li>
<li class="stepexpand"><span>Right-click the message and click <strong>Add Child &gt; Part</strong>.</span></li>
<li class="stepexpand"><span>Type the name of the part in the dialog.</span> Click <strong>OK</strong>.</li>
<li class="stepexpand"><span>Your part can refer to either a <strong>type</strong> or an <strong>element</strong>.</span> Select the appropriate option from the <strong>Reference Kind</strong> list.</li>
<li class="stepexpand"><span>If you selected <strong>type</strong> in the <strong>Reference Kind</strong> list,
you now have the option of selecting an XML schema data type from the <strong>Type</strong> drop
down list. The list of types comes from any available referenced XML schemas.</span> </li>
<li class="stepexpand"><span>If you selected <strong>element</strong> in the <strong>Reference Kind</strong> list,
you now have the option of selecting an XML schema element from
the <strong>Element</strong> drop down list. The list of elements comes from any
available referenced XML schemas.</span> </li>
</ol>
<div class="section"><p> <strong>Tip</strong>: You can also create a new part for your message using
the Outline view. Under the <strong>Messages</strong> folder, right-click your element
and click <strong>Add Child &gt; Part</strong>. Your part will automatically appear in
the Outline view (under the <strong>Messages</strong> folder), but it will only appear
in the Graph view if the message you added it to currently does.</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>