# Creating a new WSDL file

You can create a new, empty WSDL file, then edit it using the WSDL editor.

To create a WSDL file, follow these steps:

1. Create a project to contain the WSDL document. It does not matter what kind of project you create.
2. In the workbench, click File > New > Other > Web Services > WSDL. Click Next.
3. Select the project or folder that will contain the WSDL file. In the File name field, type the name of the WSDL file, for example `MyWSDLFile.wsdl`. The name of your XML file must end in `.wsdl`
4. Click Next.
5. Enter the following information:
   1. Target namespace is the namespace for the WSDL file or accept the default (`http://tempuri.org/MyWSDLFile/`). 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, `http://www.mycompany.com/myservice/`)
   2. The Prefix is the prefix associated with the target namespace.
   3. Select Create WSDL Skeleton if you want the wizard to create the skeleton of the WSDL file. 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.
   4. 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. 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.
6. Click Finish. The WSDL file opens in the WSDL editor.

If you created a WSDL file with a skeleton using SOAP bindings, it should look similar to the following:

If you created a WSDL file with a skeleton using HTTP bindings, it should look similar to the following:

Related concepts
WSDL
Editing WSDL files with the WSDL Editor

Related tasks
Importing a WSDL file
Editing WSDL files

(C) Copyright IBM Corporation 1999, 2005. All Rights Reserved.