Specifying Custom HTTP Requests
By default, an InterSystems IRIS® data platform web client uses HTTP to transport the SOAP message to the web service and to receive the response. The web client automatically creates and sends an HTTP request, but you can create a custom HTTP request. To do, you use the following procedure:
Create an instance of %Net.HttpRequestOpens in a new tab and set properties as needed. For information on this class, see Using Internet Utilities or the class documentation for %Net.HttpRequestOpens in a new tab.
Set the HttpRequest property of your web client equal to this instance.
This is useful in particular if you want to support multiple calls to a SOAP service within the same session. By default, the InterSystems IRIS web client does not support multiple calls to a SOAP service using the same session. To work around this, create a new instance of %Net.HttpRequestOpens in a new tab and use it as the HttpRequest property of your web client. This change forces the same HTTP request to be reused for all calls, which returns all cookies in a response to the next request.