Skip to main content

Specifying Supported Header Elements

Specifying Supported Header Elements

InterSystems IRIS web services and clients automatically support WS-Addressing and WS-Security header elements, but do not automatically support other header elements.

To specify the header elements supported by an InterSystems IRIS web service or web client, do the following:

  • Define classes to represent these header elements as described in Defining Custom Header Elements.

  • Associate the header element classes with header elements for the web service or web client.

    You can do this in either of two ways:

    • Add an XData block to the web service or client class. In this XData block, specify an association between specific header elements and the corresponding header element classes.

      If the service or client class also sets the class parameter USECLASSNAMESPACES to 1 (the recommended value), then this header information is used in the generated WSDL.

    • In your web service or web client class, specify the SOAPHEADERS parameter. In this parameter, specify an association between specific header elements and the corresponding header element classes.

      Note:

      This technique is less flexible, does not affect the generated WSDL, and is now deprecated.

    The following sections give the details.

FeedbackOpens in a new tab