Hi all,

I just had a look at the unit tests in XSLTMediatorTest. Most of these tests use TestUtils.getTestContextForXSLTMediator or TestUtils.getTestContextForXSLTMediatorUsingFile to create a test message context. It appears that both methods add two additional text nodes to the SOAP body:

envelope.getBody().addChild(fac.createOMText("first text child "));
envelope.getBody().addChild(builder.getDocumentElement());
envelope.getBody().addChild(fac.createOMText("second text child "));

This means that most of the tests operate on a message like this:

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ "><soapenv:Body>first text child <m0:CheckPriceRequest xmlns:m0="http://services.samples/xsd ">
<m0:Code>String</m0:Code>
</m0:CheckPriceRequest>second text child </soapenv:Body></ soapenv:Envelope>

Does anybody know the purpose of these two additional text nodes?

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to