Configuring WSDL Services
See Also
You can use the WSDL Editor to create services.
In addition, you can modify services that were generated by the New WSDL wizard.
In a WSDL file, a service indicates which binding to use
and where clients can access the web service.
Creating a Binding and Service From a Port Type
You can quickly create a binding and a service from an existing port type.
If you want to modify the service afterward, then see the appropriate steps in Creating a Service.
To create a binding and service from a port type:
- In the WSDL view, right-click the port type node choose Add > Binding and Service Port.
The Generate Binding and Service Port dialog box appears.
- Supply a name for the binding.
- The only supported binding type in this release is the SOAP protocol.
- 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.
- Supply a name for the service.
- Supply a name for the port.
- Click OK.
A binding node and a service node appear.
The binding node contains a SOAP binding node and one or more operations.
The service node contains a port node.
- 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.
Be sure to replace the dummy value with a valid value.
Creating a Service
Instead of quickly creating a binding and service from an existing port type,
you can create the binding, service, and their subnodes individually.
This section describes how to create the service, and then how to configure the SOAP information.
Before you can configure the service's port, you must create the binding.
To create a service:
- In the WSDL view, right-click the Services node and choose Add Service.
A service node appears.
- If the Properties window is not visible, choose Window > Properties.
- Select the service node.
- (Optional) Set the Name property to the new name.
- Right-click the service node and choose Add > Service Port.
A port node appears.
- Select the port node.
- (Optional) Set the Name property to the new name.
- Set the Binding property to the desired binding.
To add a SOAP address node:
- Right-click the port node and choose Add > SOAP Address.
A SOAP address node appears.
- If the Properties window is not visible, choose Window > Properties.
- Select the SOAP address node.
- Set the Location property to the base URI for the port.
Removing Services and Ports
You can remove a service or port from the WSDL file.
To remove a service or port:
- In the WSDL view, right-click the service or port node and choose Delete.
- See Also
- Configuring WSDL File Components
Legal Notices