My Oracle Support Banner

Passing HTTP Request Header Is Not Working With REST Adapter In A GET Request (Doc ID 2436313.1)

Last updated on AUGUST 17, 2018

Applies to:

Oracle SOA Suite - Version and later
Information in this document applies to any platform.


When attempting to Pass an HTTP request header is not working with REST adapter in a GET request. I'm trying to invoke an outbound REST endpoint that requires a HTTP header parameter. The header parameter is not working when
when I invoke the endpoint. I added the oracle.webservices.http.headers property to the REST reference binding but it's not passing the header in the GET request.

Below is the property that I included in the REST reference binding.

See below annotation: 

<bpelx:toProperty name="aw-tenant-code">"value"</bpelx:toProperty>    

<reference name="AirWatchDevices" ui:wsdlLocation="WSDLs/AirWatchDevices.wsdl">
   <interface.wsdl interface=""/>
   < config="Adapters/AirWatchDevices.wadl" location="">      
     <property name="oracle.webservices.http.headers">aw-tenant-code</property>

BPEL value:
<invoke name="InvokeAirWatchSearch" partnerLink="AirWatchDevices"
           portType="ns1:AirWatchDevices_ptt" operation="search" inputVariable="InvokeAirWatchSearch_InputVariable"
           outputVariable="InvokeAirWatchSearch_OutputVariable" bpelx:invokeAsDetail="no">
       <bpelx:toProperty name="aw-tenant-code">"value"</bpelx:toProperty>        




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.