Creating XSLT Style sheets to Use with XML Extensions

Now that you have the prototypes for the request and response, you can create two XSLT style sheets (one for requests and one for responses), to be used by the XML Extensions syntax.

  1. Ensure that SoapUI is still open, showing the FahrenheitToCelcius request and response XMLs.
  2. Create a directory in which to store the resources for the demonstration.
  3. Open any simple text editor.
  4. Copy the request XML from SoapUI, and paste it into your text editor, then save the file as TempConvertRequestF2C.xsl to the location that you created in an earlier step.
  5. Open a new blank document in the editor, and then copy and paste the response XML from SoapUI to the editor.
  6. Save this file with the filename TempConvertResponseF2C.xsl to the same location as the previous file.
  7. To determine if a SOAPAction HTTP binding parameter is required, click the FahrenheitToCelsius binding entry in the SoapUI Projects navigation pane, to display the Operation Properties pane below. This pane displays parameters present in the WSDL. If the SOAPAction property for the WSDL contains a value, the value must be used in a SOAP request, which will get coded later. Make a note of this value.

    The SOAPAction parameter is an optional part of a SOAP 1.1 and SOAP 1.2 web service definition; it is an HTTP header that assists the web server's determination of the type of the SOAP request, without investigating the XML payload.