blob: 34d86fffb9d23be053e508dab8d2f03acf36d2a5 [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>Creating a new type for your WSDL file</title>
</head>
<body id="tcrttype"><a name="tcrttype"><!-- --></a>
<h1 class="topictitle1">Creating a new type for your WSDL file</h1>
<div><p>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.</p>
<div class="section"><p>WSDL allows type systems to be added via extensibility elements.
An extensibility element may appear under the <strong>types</strong> element to identify
the type definition system being used and to provide an XML container element
for the type definitions.</p>
<p>To add an extensibility element to your WSDL
file, follow these steps:</p>
</div>
<ol><li class="stepexpand"><span>In the Graph view right-click the <strong>Types</strong> group.</span></li>
<li class="stepexpand"><span>Click <strong>Add Child</strong> &gt; <strong>Add Schema</strong>.  You will be
creating an inline schema - a schema that is defined directly within the WSDL
file.</span> </li>
<li class="stepexpand"><span>A schema object will appear in the group.</span> Select it.</li>
<li class="stepexpand"><span>The following information about your schema is listed: </span> <ul><li> <strong>Prefix</strong> - The prefix associated with the current namespace</li>
<li> <strong>URI</strong> - the target namespace for the schema</li>
<li>Other attributes, such as <strong>version</strong>, <strong>language</strong>, and <strong>attribute
form</strong>.</li>
</ul>
You can manually modify the value of any of these attributes.</li>
<li class="stepexpand"><span>You can also add new components to your XML schema. In the Graph
view, press the arrow icon to the left of the schema object to drill down
into the schema.</span> Now you can edit the schema within the graph
view. When finished, press the <span class="uicontrol">Back</span> button at the top
left of the WSDL editor to return to the definition view of the WSDL document.</li>
</ol>
<div class="section"><p>For more information about XML schemas, refer to the XML schema
editor online documentation.</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>