Skip to main content

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:

  1. Choose a fault destination and a fault action to use in case of faults.

  2. 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.

  3. 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.

  4. Set the FaultAddressing property of your web service equal to the instance of %SOAP.Addressing.PropertiesOpens in a new tab.

FeedbackOpens in a new tab