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 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

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.

aw-tenant-code
  
See below annotation: 

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

composite.xml: 
<reference name="AirWatchDevices" ui:wsdlLocation="WSDLs/AirWatchDevices.wsdl">
   <interface.wsdl interface="http://xmlns.oracle.com/AirWatch/Devices/AirWatchDevices#wsdl.interface(AirWatchDevices_ptt)"/>
   <binding.rest config="Adapters/AirWatchDevices.wadl" location="https://cnxxx.xxxx.com">      
     <property name="oracle.webservices.http.headers">aw-tenant-code</property>
   </binding.rest>
 </reference>

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



Changes

 

Cause

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.