Skip to main content

%SOAP.Fault12

Class %SOAP.Fault12 Extends (%RegisteredObject, %XML.Adaptor) [ Inheritance = right, System = 4 ]

class to represent a SOAP 1.2 fault. %SOAP.Fault12 should only be used if SOAPVERSION is set to "1.2" or that at least SoapVersion="1.2" meaning that this web service request is SOAP 1.2 is format. The %SOAP.Fault class will work with SOAP 1.1 or SOAP 1.2. However, the fault functionality is limited to that of SOAP 1.1 fault.

Parameters

XMLTYPE

Parameter XMLTYPE = "Fault";

NAMESPACE

Parameter NAMESPACE = "http://www.w3.org/2003/05/soap-envelope";

Properties

Code

Property Code As %SOAP.Fault12.Code [ Required ];

The SOAP fault code as defined in the SOAP definition.

Reason

Property Reason As list Of %SOAP.Fault12.Text(XMLITEMNAME = "Text") [ Required ];

Human readable message

Node

Property Node As %String(MAXLEN = "");

Node that generated the fault. Optional for the destination node.

Role

Property Role As %String(MAXLEN = "");

Role that the node was operating in.

Detail

Property Detail As %XML.String(MAXLEN = "");

XML element that gives error details. The contents of detail will not be escaped.

faultPrefixDefinition

Property faultPrefixDefinition As %String(MAXLEN = "", XMLPROJECTION = "NONE");

Optional prefix definition attribute to be added to Fault element. Usually of the form xmlns:prefix="namespace"

Methods

AsString

Method AsString() As %String

Return this SOAP fault as a string.