xml.wsdlui/javahelp/org/netbeans/modules/xml/wsdlui/docs/wsdl_editor_creating.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5 Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
7 Oracle and Java are registered trademarks of Oracle and/or its affiliates.
8 Other names may be trademarks of their respective owners.
10 The contents of this file are subject to the terms of either the GNU
11 General Public License Version 2 only ("GPL") or the Common
12 Development and Distribution License("CDDL") (collectively, the
13 "License"). You may not use this file except in compliance with the
14 License. You can obtain a copy of the License at
15 http://www.netbeans.org/cddl-gplv2.html
16 or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
17 specific language governing permissions and limitations under the
18 License. When distributing the software, include this License Header
19 Notice in each file and include the License file at
20 nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
21 particular file as subject to the "Classpath" exception as provided
22 by Oracle in the GPL Version 2 section of the License file that
23 accompanied this code. If applicable, add the following below the
24 License Header, with the fields enclosed by brackets [] replaced by
25 your own identifying information:
26 "Portions Copyrighted [year] [name of copyright owner]"
30 The Original Software is NetBeans. The Initial Developer of the Original
31 Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
32 Microsystems, Inc. All Rights Reserved.
34 If you wish your version of this file to be governed by only the CDDL
35 or only the GPL Version 2, indicate your decision by adding
36 "[Contributor] elects to include this software in this distribution
37 under the [CDDL or GPL Version 2] license." If you do not indicate a
38 single choice of license, a recipient has the option to distribute
39 your version of this file under either the CDDL, the GPL Version 2 or
40 to extend the choice of license to its licensees as provided above.
41 However, if you add GPL Version 2 code and therefore, elected the GPL
42 Version 2 license, then the option applies only if the new code is
43 made subject to such option by the copyright holder.
49 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
50 <title>Creating a WSDL File From Scratch</title>
51 <link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
56 <h2>Creating a WSDL File From Scratch</h2>
57 <p><small><a href="#seealso">See Also</a></small></p>
59 <p>When you create a WSDL file from scratch, the wizard contains three pages that you can fill out.</p>
62 <li><b>Name and Location.</b> Prompts you to enter basic information about the WSDL file.</li>
63 <li><b>Abstract Configuration.</b> Prompts you to define the port type, operation, and messages.</li>
64 <li><b>Concrete Configuration.</b> Prompts you to define the binding, service, and port.</li>
67 <p>You do <i>not</i> need to complete all three pages.
68 You can fill out the Name and Location page and then click Finish.
69 Or you can fill out the Name and Location page and the Abstract Configuration page and then click Finish.</p>
72 <p>If you want to use the Partner view, it makes sense to fill out the Name and Location page only.</p>
77 <p><b>To create a WSDL file from scratch:</b></p>
81 <li>In the Projects window, right-click the project and choose New > WSDL Document.<br>
82 The Name and Location wizard page appears.</li>
84 <li>Configure the <a href="CSH/new_wsdl_wizard_name_location.html">name and location</a>:</li>
87 <li>Enter a name for the WSDL file.
88 The name must comply with the rules for the <a href="wsdl_editor_ncname.html"><tt>NCName</tt></a> data type.
89 You cannot enter a name that already exists in the project.
90 Be sure to enter a descriptive name, such as <tt>AirlineReservationService</tt> or <tt>HotelReservationService</tt>.</li>
91 <li>(Optional) Change the default folder by clicking Browse and selecting the new folder.</li>
92 <li>Enter the target namespace of the WSDL file. The target namespace will appear in the root element.</li>
93 <li>Specify any XML Schema files that you want to import.</li>
96 <li>If you want to configure the abstract and concrete information from the wizard, then click Next.
97 Otherwise, click Finish and skip the remaining steps.</li>
99 <li>Configure the <a href="CSH/new_wsdl_wizard_define_abstract.html">abstract information</a>:</li>
102 <li>Enter a name for the port type.</li>
103 <li>Enter a name for the operation.</li>
104 <li>Select the category of operation: request-response or one way.</li>
105 <li>Define the message that the operation receives as input.</li>
106 <li>If the operation is a request-response operation, then define the message that the operation sends as output.</li>
107 <li>(Optional) If the operation is a request-response operation, then you can optionally define a message that the operation sends as a fault.</li>
110 <li>If you want to configure the concrete information from the wizard, then click Next.
111 Otherwise, click Finish and skip the remaining step.</li>
113 <li>Configure the <a href="CSH/new_wsdl_wizard_define_concrete.html">concrete information</a>:</li>
116 <li>Enter a name for the binding.</li>
117 <li>Select the type of binding.</li>
118 <li>Select the binding subtype. The choices vary depending on the binding type.</li>
119 <li>Enter a name for the service.</li>
120 <li>Enter a name for the port.</li>
121 <li>Click Finish.</li>
124 The WSDL file is created. The WSDL Editor appears in WSDL view.
129 <li>If you created a SOAP binding, then the port's <tt>soap:address</tt> node includes a Location property.
130 The Location property specifies the address of the port.
131 The wizard generates a dummy value for the Location property.
132 The Location property must be unique; that is, the value must not conflict with any other WSDL files
133 that are deployed to the same application server.</li>
137 <dt><a name="seealso">See Also</a></dt>
138 <dd><a href="wsdl_editor.html" title="About the WSDL Editor">About the WSDL Editor</a></dd>
139 <dd><a href="wsdl_editor_creating_existing.html" title="Creating a WSDL File Based On an Existing WSDL File">Creating a WSDL File Based On an Existing WSDL File</a></dd>
143 <a href="credits.html">Legal Notices</a></small>
144 <table border="0" cellpadding="150">
145 <tr><td> </td></tr>
146 <tr><td> </td></tr>
147 <tr><td> </td></tr>