blob: f16e13e98111e756536c020883d436fd72babf5d [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 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">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 outside Rational Developer products into the workbench and edit them in the WSDL editor.">Editing WSDL files</a></div></div>
</div>
</body>
</html>