Skip to main content
summaryrefslogtreecommitdiffstats
blob: ca7f9c29de97595924dffeaa1363dcac0faad23c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?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 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" />
<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="Creating an import statement" />
<meta name="abstract" content="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 import 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." />
<meta name="description" content="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 import 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." />
<meta content="Web services, adding WSDL import statements, WSDL files, import statements" name="DC.subject" />
<meta content="Web services, adding WSDL import statements, WSDL files, import statements" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../concepts/cwsdled.html" />
<meta scheme="URI" name="DC.Relation" content="tcrtwsdl.html" />
<meta scheme="URI" name="DC.Relation" content="tedtwsdl.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tcrtimpt" 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>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, complete the following steps:</p>
</div>

<ol>
<li class="stepexpand"><span>In the Outline view, right-click the <strong>Imports</strong> folder and
click <strong>Add Import.</strong> Select your new import statement.</span></li>

<li class="stepexpand"><span>In the Properties view, click the <strong>General</strong> pane.</span></li>

<li class="stepexpand"><span>Click the icon to the right of the <strong>Location</strong> field to open
the Select File window.<span class="uicontrol" />.</span></li>

<li class="stepexpand"><span>Select a WSDL file or XML Schema to import by doing one of the
following:</span> <ul>
<li>Select a file from another project in the workspace in the <span class="uicontrol">Workspace
Files</span> section.</li>

<li>Click <span class="uicontrol">Import Files</span> and then <span class="uicontrol">Browse</span> to
find and select files outside the workspace. Click <span class="uicontrol">Finish</span> after
completing this Import wizard.</li>

</ul>
Click <span class="uicontrol">OK</span>.</li>

<li class="stepexpand"><span>Type any information about the import statement you want the user
to read in the <strong>Documentation</strong> pane.</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="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>

</body>
</html>

Back to the top