Passing HTTP Request Header Is Not Working With REST Adapter In A GET Request
(Doc ID 2436313.1)
Last updated on AUGUST 16, 2024
Applies to:
Oracle SOA Suite - Version 12.1.3.0.0 and laterInformation 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:
-----------------------------------------------------------------------------------------------------------
composite.xml:
<reference name="AirWatchDevices" ui:wsdlLocation="WSDLs/AirWatchDevices.wsdl">
<interface.wsdl interface="" alt="Click (or CTRL+Click if using Firefox) to view" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1534539983409" target="_blank">http://xmlns.oracle.com/AirWatch/Devices/AirWatchDevices#wsdl.interface(AirWatchDevices_ptt)"/>
<binding.rest config="Adapters/AirWatchDevices.wadl" location="/" alt="Click (or CTRL+Click if using Firefox) to view" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1534539983409" target="_blank">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! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |