Adding WS-Addressing Header Elements When Faults Occur
Adding WS-Addressing Header Elements When Faults Occur
Your InterSystems IRIS web service can add WS-Addressing header elements when faults occur. To do this, include the following additional steps within the fault handling of your web service:
- 
Choose a fault destination and a fault action to use in case of faults. 
- 
Using these as arguments, call the GetDefaultResponseProperties() class method of %SOAP.Addressing.PropertiesOpens in a new tab. This returns an instance of %SOAP.Addressing.PropertiesOpens in a new tab that is populated with values as typically needed. 
- 
Optionally set other properties of the instance of %SOAP.Addressing.PropertiesOpens in a new tab, as needed. For details, see the class documentation for %SOAP.Addressing.PropertiesOpens in a new tab. 
- 
Set the FaultAddressing property of your web service equal to the instance of %SOAP.Addressing.PropertiesOpens in a new tab.