infi livi · Aug 7, 2019

SOAP Fault Error <ZSOAP>

Hi All,

While Executing Custom SOAP fault got an error.Please help me out of this.


Sample Code:

set fault=##class(%SOAP.Fault).%New()
set fault.faultcode=$$$FAULTServer
set fault.detail="<mymessage>Division error detail</mymessage>"
set fault.faultstring="Division error"
// ReturnFault must be called to send the fault to the client.
// ReturnFault will not return here.
do ..ReturnFault(fault)


Error Details:



Advance Thanks

0 223
Discussion (1)1
Log in or sign up to continue

<ZSOAP> is just a summary not more meaning than "there was an error"

for the details, I'd suggest to analyze variable %objlasterror

eg. set detail=$system.Status.GetErrorText(%objlasterror)

set fault.detail="<mymessage>"_detail_"</mymessage>"