blob: cf4021eb7deaa26843f4564e5e5f701980953b9c [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="(C) Copyright 2005" />
<meta name="DC.rights.owner" content="(C) Copyright 2005" />
<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 a new WSDL file" />
<meta name="abstract" content="You can create a new, empty WSDL file, then edit it using the WSDL editor." />
<meta name="description" content="You can create a new, empty WSDL file, then edit it using the WSDL editor." />
<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.jst.ws.doc.user/concepts/cwsdl.html" />
<meta scheme="URI" name="DC.Relation" content="../concepts/cwsdled.html" />
<meta scheme="URI" name="DC.Relation" content="timpwsdl.html" />
<meta scheme="URI" name="DC.Relation" content="tedtwsdl.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tcrtwsdl" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/commonltr.css" type="text/css" rel="stylesheet" />
<title>Creating a new WSDL file</title>
</head>
<body id="tcrtwsdl"><a name="tcrtwsdl"><!-- --></a>
<h1 class="topictitle1">Creating a new WSDL file</h1>
<div><p>You can create a new, empty WSDL file, then edit it using the WSDL
editor.</p>
<div class="section"><p>To create a WSDL file, follow these steps:</p>
</div>
<ol>
<li class="stepexpand"><span>Create a project to contain the WSDL document.</span> It does
not matter what kind of project you create.</li>
<li class="stepexpand"><span>In the workbench, click <strong>File &gt; New &gt; Other &gt; Web Services &gt;
WSDL</strong>.</span> Click <strong>Next</strong>.</li>
<li class="stepexpand"><span>Select the project or folder that will contain the WSDL file.</span>
In the <strong>File name</strong> field, type the name of the WSDL file, for
example <tt class="sysout">MyWSDLFile.wsdl</tt>. The name of your XML
file must end in <tt class="sysout">.wsdl</tt></li>
<li class="stepexpand"><span>Click <strong>Next.</strong></span></li>
<li class="stepexpand"><span>Enter the following information: </span>
<ol type="a">
<li class="substepexpand"><span><strong>Target namespace</strong> is the namespace for the WSDL file or
accept the default (<samp class="codeph">http://www.example.org/<em>MyWSDLFile</em>/</samp>).</span>
The target namespace is used for the names of messages and the port
type, binding and service defined in the WSDL file. The value must take the
form of a valid URI (for example, <samp class="codeph">http://www.mycompany.com/myservice/</samp>)
</li>
<li class="substepexpand"><span>The <strong>Prefix</strong> is the prefix associated with the target
namespace.</span></li>
<li class="substepexpand"><span>Select <span class="uicontrol">Create WSDL Skeleton</span> if you want
the wizard to create the skeleton of the WSDL file.</span> This will
generate the WSDL elements required for your service, including bindings,
ports and messages. You can then modify these to meet the requirements of
your Web service.</li>
<li class="substepexpand"><span>If you have chosen to create a WSDL skeleton, select the binding
options you want to use in the WSDL document. The options are SOAP and HTTP.</span>
If you select SOAP you can then select the encoding style you want
to use. If you select HTTP you can select whether to create an HTTP getter
or setter.</li>
</ol>
</li>
<li class="stepexpand"><span>Click <strong>Finish</strong>.</span> The WSDL file opens in the WSDL
editor.</li>
</ol>
<div class="section"><p>If you created a WSDL file with a skeleton using SOAP bindings,
it should look similar to the following:<br /><img src="../images/soapskel.gif" alt="Image of a WSDL skeleton using SOAP bindings" /><br /></p>
<p>If you created
a WSDL file with a skeleton using HTTP bindings, it should look similar to
the following:<br /><img src="../images/httpskel.gif" alt="Image of a WSDL skeleton using HTTP bindings" /><br /></p>
</div>
</div>
<div>
<div class="linklist"><strong>Related concepts</strong><br />
<div><a href="../../org.eclipse.jst.ws.doc.user/concepts/cwsdl.html">WSDL</a></div>
<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="timpwsdl.html" title="">Importing a 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>