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.
- Name and Location. Prompts you to enter basic information about the WSDL file.
- Abstract Configuration. Prompts you to define the port type, operation, and messages.
- Concrete Configuration. Prompts you to define the 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 project and choose New > WSDL Document.
The Name and Location wizard page appears.
- Configure the name and location:
- Enter a name for the WSDL file.
The name must comply with the rules for the NCName data type.
You cannot enter a name that already exists in the project.
Be sure to enter a descriptive name, such as AirlineReservationService or HotelReservationService.
- (Optional) Change the default folder by clicking Browse and selecting the new folder.
- Enter the target namespace of 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 and skip the remaining steps.
- Configure the abstract information:
- Enter a name for the port type.
- Enter a name for the operation.
- Select the category of operation: request-response or one way.
- Define the message that the operation receives as input.
- If the operation is a request-response operation, then define the message that the operation sends as output.
- (Optional) If the operation is a request-response operation, then you can optionally define a message that the operation sends as a fault.
- If you want to configure the concrete information from the wizard, then click Next.
Otherwise, click Finish and skip the remaining step.
- Configure the concrete information:
- Enter a name for the binding.
- Select the type of binding.
- Select the binding subtype. The choices vary depending on the binding type.
- 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 created a SOAP binding, 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