· Nov 12, 2020

The return message structure of the SOAP service

This XML file does not appear to have any style information associated with it. The document tree is shown below.



The problem is shown in figure!  thank you!

Discussion (4)0
Log in or sign up to continue


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 = "";

Method Test(x As %String) As %String(XMLNAME="Root") [ WebMethod ]
    Return "Test"


Then response is following:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="" xmlns:s="">
      <Root xmlns="">Test</Root>