Creating a WSDL File From Scratch
See Also
When you create a WSDL file from scratch, the wizard contains three pages that you can fill out.
- The Name and Location page prompts you to enter basic information
about the WSDL file.
- The Abstract Configuration page prompts you to enter information about the
following elements of the WSDL file: port type, operation, and message.
- The Concrete Configuration page prompts you to enter information about the
following elements of the WSDL file: binding, service, and port.
You do not need to complete all three pages.
You can fill out the Name and Location page and then click Finish.
Or you can fill out the Name and Location page and the Abstract Configuration page and then click Finish.
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:
- Enter 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.
- If you want to configure the abstract and concrete information from the wizard, then click Next.
Otherwise, click Finish.
- In the Abstract Configuration wizard page, do the following:
- Enter a name for the port type.
- Enter a name for the operation.
- Select the category of operation.
- Depending on the category of operation,
you enter message information for the input, 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 operation is a request-response operation,
then you can enter message information for a fault.
- If you want to configure the concrete information from the wizard, then click Next.
Otherwise, click Finish.
- In the Concrete Configuration wizard page, do the following:
- Enter a name for the binding.
- Select the type of binding.
The appropriate extensibility elements will be added to the WSDL file.
-
If you selected the HTTP binding type, then you must specify whether the binding uses the GET or POST verb and
whether message parts are encoded into the HTTP request URI using the standard URI-encoding rules or using a replacement algorithm.
If you selected the SOAP binding type, then you must specify whether the operations are RPC-oriented or document-oriented and
how the message parts reference their types.
For other binding types, you typically have only one choice for the binding subtype.
- Enter a name for the service.
- Enter a name for the port.
- Click Finish.
The WSDL file is created. The WSDL Editor appears in WSDL view.
- If you selected the SOAP binding type, then the port's soap:address node includes a Location property.
The Location property 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.
- See Also
- About the WSDL Editor
- Creating a WSDL File Based On an Existing WSDL File
Legal Notices