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.
About this task
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 |
To configure XSL transformations on input and output messages
that use the SOAP/HTTP protocol for an operation:
Procedure
- 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.
- Open the Manage XSL Transformations wizard
by right-clicking the operation and selecting Manage XSL
Transformations.
- Click Generate default to generate
the default XML schema for the input messages and the output messages.
- 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.
- 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.
- Open the Manage XSL Transformations wizard
by right-clicking the operation and selecting Manage XSL
Transformations.
- In the Input Message Transformation box,
follow these steps:
- Select the XSL file for the transformation of input
messages.
- Select the Custom schema check
box.
- Select the root element of the input messages.
- In the Output Message Transformation box,
follow these steps:
- Select the XSL file for the transformation of output
messages.
- Select the Custom schema check
box.
- Select the root element of the output messages.
- Click Finish.