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:

  1. 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.
  2. Supply a name for the binding.
  3. The only supported binding type in this release is the SOAP protocol.
  4. 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.
  5. Supply a name for the service.
  6. Supply a name for the port.
  7. 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.

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:

  1. In the WSDL view, right-click the Services node and choose Add Service.
    A service node appears.
  2. If the Properties window is not visible, choose Window > Properties.
  3. Select the service node.
  4. (Optional) Set the Name property to the new name.
  5. Right-click the service node and choose Add > Service Port.
    A port node appears.
  6. Select the port node.
  7. (Optional) Set the Name property to the new name.
  8. Set the Binding property to the desired binding.

To add a SOAP address node:

  1. Right-click the port node and choose Add > SOAP Address.
    A SOAP address node appears.
  2. If the Properties window is not visible, choose Window > Properties.
  3. Select the SOAP address node.
  4. 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:

See Also
Configuring WSDL File Components

Legal Notices