Hi,
I have a requirement where i want to set the HTTP header in BPEL response. HTTP header are not getting set when I am using REPLY activity. I am able to set the HTTP header in INVOKE activity as well as receive from RECEIVE activity.
Have followed below approach to set the HTTP header:
Add below property in reference or service binding in composite.xml
<property name="oracle.webservices.http.headers">A,B</property>
For Invoke:
<invoke name="Invoke1" partnerLink="SOAPReference" portType="ns1:HTTPHeaderTest"
operation="process" inputVariable="Invoke1_process_InputVariable" bpelx:invokeAsDetail="no"
outputVariable="Invoke1_process_OutputVariable">
<bpelx:toProperties >
<bpelx:toProperty name="A">"test"</bpelx:toProperty>
<bpelx:toProperty name="B" variable="varB"></bpelx:toProperty>
</bpelx:toProperties>
</invoke>
Receive:
<receive name="receiveInput" partnerLink="httpheadertest_client" portType="client:HTTPHeaderTest" operation="process" variable="inputVariable" createInstance="yes">
<bpelx:fromProperties >
<bpelx:fromProperty name="A" variable="varA"></bpelx:fromProperty>
<bpelx:fromProperty name="B" variable="varB"></bpelx:fromProperty>
</bpelx:fromProperties>
</receive>
But when i try to set the header in SYNC bpel response HEADER it is not working.
REPLY:
<reply name="replyOutput" partnerLink="httpheadertest_client" portType="client:HTTPHeaderTest" operation="process" variable="outputVariable">
<bpelx:toProperties >
<bpelx:toProperty name="A">"lllf"</bpelx:toProperty>
<bpelx:toProperty name="B" variable="varB"></bpelx:toProperty>
</bpelx:toProperties>
</reply>
In EM console i am able to see that the property is set while sending REPLY:
But, I am not able to get the header in response. I checked using TCPMON as well as SOAP UI.
Please suggest?