Adding additional HTTP headers for SOAP client
We need to use SOAP API for some webservice. I created the request/response & operation classes via the SOAP wizard. Prior to making the invokeMethod,
..Adapter.InvokeMethod
i need to set a custom HTTP header as part of the SOAP call. Can you please let me know how i can set that. That Adapter (EnsLib.SOAP.OutboundAdapter) class does not have methods for setting HTTP headers.
Thank you,
Ravi
Comments
Call:
set sc = ..Adapter.SetHttpHeader(name, value)Thank you Eduard. Below is the error i am getting
ERROR <Ens>ErrException: <METHOD DOES NOT EXIST>zSetPatientPhotoOperation+2^UH.Photo.Operation.IPatientAccessMobileServices2016.1 *SetHttpHeader,EnsLib.SOAP.OutboundAdapter -- logged as '-' number - @' Set tSC = ..Adapter.SetHttpHeader("something", "someValue")'
Sorry, meant:
Do ..Adapter.%Client.SetHttpHeader(name, value)Hi I tried using the above line of code, but got the below error -
Cache error: <PROPERTY DOES NOT EXIST>zNexusUpload+34^QuintilesLib.Deploy.Build.RESTOperation.1 *%Client,EnsLib.HTTP.OutboundAdapter"