blob: 398b62df1a0f66f3cc6e5ef2272a7e4483ad025d [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 an import statement</title>
</head>
<body id="tcrtimpt"><a name="tcrtimpt"><!-- --></a>
<h1 class="topictitle1">Creating an import statement</h1>
<div><p>The import statement is used to import other WSDL documents or
XML schemas into your WSDL document. This enables you to have more modular
WSDL documents. The use of the <strong>import</strong> statement allows the separation
of the different elements of a service definition into independent documents,
which can then be imported as needed. This technique helps in writing clearer
service definitions, by separating the definitions according to their level
of abstraction.</p>
<div class="section"><p>To create an import statement, follow these steps:</p>
</div>
<ol><li><span>In the Graph view, right-click the <strong>Imports</strong> group and click
<strong>Add Child &gt; Import.</strong></span></li>
<li><span>Select your new import statement.</span></li>
<li><span>Specify the <strong>namespace</strong> of the document you wish to import,
then specify the <strong>location</strong> of the document you wish to import.</span></li>
</ol>
<div class="section">Once you specify the location of the document you wish to import,
the import object's label changes to reflect the specified location. Imported
WSDL components may now be visible within the editor.</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>