I am getting this error:
TypeError: The prefix "types" for element "types:ReceiveMessageResponse" is not bound.
at com.orchestral.rhapsody.modules.standard.filters.executescript.ExecuteScript.doProcessMessage(ExecuteScript.java:9)
With this code:
var next = output.append(input[0]);
var output =
<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/ xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ xmlns:tns=http://www.show.scot.nhs.uk/sci/gateway/messaging2.0 xmlns:types=http://www.show.scot.nhs.uk/sci/gateway/messaging2.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema'>
<soap:Body soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<types:ReceiveMessageResponse>
<ReceiveMessageResult href="#id1"/>
</types:ReceiveMessageResponse>
<types:GatewayAck id="id1" xsi:type="types:GatewayAck">
<Code xsi:type="xsd:int">0</Code>
<Detail xsi:type="xsd:string"/>
<Source xsi:type="xsd:string"/>
<UserMsg xsi:type="xsd:string"/>
</types:GatewayAck>
</soap:Body>
</soap:Envelope>
next.xml = output;
I tried creating one more tag for Types
but it did not worked.