Controlling the Message Name of the SOAP Response
In an InterSystems IRIS® data platform web service, you can control the message name used in the response received from a web method. By default, this message name is the name of the web method with Response appended to the end. The following example shows a response from a web method called Divide; the response message name is DivideResponse.
<SOAP-ENV:Body>
<DivideResponse xmlns="http://www.myapp.org">
<DivideResult>.5</DivideResult>
</DivideResponse>
</SOAP-ENV:Body>
To specify a different response message name, set the SoapMessageName keyword within the web method definition.
Note that you cannot change the name of the SOAP message that invokes a given web method; this name of this message is the name of the method. You can, however, override the SOAP action as given in the HTTP request; see Overriding the Default HTTP SOAP Action.