Creating a WSDL File
See Also
When you create a WSDL file, you must choose one of the following approaches:
- Create a WSDL file from scratch. A wizard guides you through the process.
- Create a WSDL file based on an existing WSDL file.
The wizard enables you to create a basic WSDL file.
If you want a more complicated WSDL file, then use the WSDL Editor to modify the basic WSDL file.
To create a WSDL file from scratch:
- In the Projects window, right-click the Process Files folder and choose New > WSDL Document.
- In the Name and Location wizard page, do the following:
- Supply a name for the file. You cannot enter a name that already exists in the project.
- (Optional) Change the default folder by clicking Browse and selecting the new folder.
- Enter the target namespace for the WSDL file. The target namespace will appear in the root element.
- Specify any XML Schema files that you want to import.
- Click Next.
- In the Abstract Configuration wizard page, do the following:
- Supply a name for the port type.
- Supply a name for the operation.
- Select the category of operation.
- Depending on the category of operation,
you supply message information for the input, the output, or both the input and output.
Each message contains one or more logical parts.
The Add and Remove buttons enable you to add and remove message parts.
- (Optional) If the category of operation is Request-Response or Solicit-Response,
then you can supply message information for a fault.
- Click Next.
- In the Concrete Configuration wizard page, do the following:
- Supply a name for the binding.
- The binding subtype options indicate how to translate the binding to a SOAP message.
If your settings for message parts and the binding subtype do not conform to
the WS-I Basic Profile, an error message appears at the bottom of the wizard page.
- Supply a name for the service.
- Supply a name for the port.
- Click Finish.
The WSDL file is created. The WSDL Editor appears in WSDL view.
- The port's SOAP address node includes a location property, which specifies the address of the port.
The wizard generates a dummy value for the location property.
The location property must be unique; that is, the value must not conflict with any other WSDL files
that are deployed to the same application server.
To create a WSDL file based on an existing WSDL file:
- In the Projects window, right-click the Process Files folder and choose New > File/Folder.
- In the Choose File Type wizard page, do the following:
- In the Categories list, select the XML node.
- In the File Types list, select the External WSDL Document(s) node.
- Click Next.
- In the Specify Resource Location wizard page, do one of the following:
- To create a WSDL file based on a running service:
- Select the From URL button.
- Enter the URL of the service's WSDL file.
- Click Finish.
- To create a WSDL file by using an existing WSDL file on the local file system:
- Select the From Local File System button.
- Specify the folder where the WSDL file is located.
- Click Finish.
The WSDL file is created. The WSDL Editor appears in WSDL view.
- See Also
- Addding WSDL and XML Schema Resources
- Configuring WSDL File Components
Legal Notices