Transforming input and output messages that use the SOAP/HTTP message protocol

If your client applications will send and receive messages that use SOAP/HTTP message protocol when they access a particular operation in a Web service, you can transform those messages to use the XML schema that the workbench generated for the operation. You can also transform messages that are returned by the Web service from the default XML schema to SOAP-wrapped, valid XML documents that use a custom XML schema.

The following table describes the inputs to and outputs from the XSL transformations that are possible when input messages use the SOAP/HTTP protocol:

Table 1. Inputs to and outputs from the XSL transformations
  Input to the XSL transformation Output from the XSL transformation
First XSL transformation SOAP-wrapped, valid XML document that uses a custom XML schema SOAP-wrapped, valid XML document that uses the default XML schema
Second XSL transformation SOAP-wrapped, valid XML document that uses the default XML schema SOAP-wrapped, valid XML document that uses a custom XML schema

Procedure:

To configure XSL transformations on input and output messages that use the SOAP/HTTP protocol for an operation:

  1. Add the custom XML schema for the messages to the Web service. Right-click the Web service and select

    Manage Custom Schemas to open the

    Manage Custom XSL Schemas wizard.

  2. Open the

    Manage XSL Transformations wizard by right-clicking the operation and selecting

    Manage XSL Transformations.

  3. Click

    Generate default to generate the default XML schema for the input messages and the output messages.

  4. Create an XSL file for the transformation of input messages. Make sure that the XSL file is in a location that you can browse to from the workbench.

  5. Create an XSL file for the transformation of output messages to XML files that are tagged according to a custom XML schema. Make sure that the XSL file is in a location that you can browse to from the workbench.

  6. Open the

    Manage XSL Transformations wizard by right-clicking the operation and selecting

    Manage XSL Transformations.

  7. In the

    Input Message Transformation box, follow these steps:

    1. Select the XSL file for the transformation of input messages.

    2. Select the

      Custom schema check box.

    3. Select the root element of the input messages.

  8. In the

    Output Message Transformation box, follow these steps:

    1. Select the XSL file for the transformation of output messages.

    2. Select the

      Custom schema check box.

    3. Select the root element of the output messages.

  9. Click Finish.