SOAP Fault Error <ZSOAP>

Caché, Ensemble

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:

<ZSOAP>zReturnFault+3^%SOAP.WebService.1

 

Advance Thanks

  • 0
  • 0
  • 56
  • 0
  • 1

Answers

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