Hi.
You need to specify
Parameter ARGUMENTSTYLE = "message";
For example:
Class delme.SoapService Extends %SOAP.WebService [ Language = objectscript, ProcedureBlock ]
{
Parameter ARGUMENTSTYLE = "message";
Parameter SERVICENAME = "MyService";
Parameter NAMESPACE = "http://tempuri.org";
Method Test(x As %String) As %String(XMLNAME="Root") [ WebMethod ]
{
Return "Test"
}
}
Then response is following:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<Root xmlns="http://tempuri.org">Test</Root>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
- Log in to post comments