1 person found this helpful
I think this article of Edwin Biemond desribes it nicely for BPEL: Java / Oracle SOA blog: Retrieve or set a HTTP header from Oracle BPEL
I haven't got a proper example of a Mediator doing the same. But I played around a with an example of a service I have.
I added the property <property name="oracle.webservices.http.headers">username,message,message2</property> to my reference.
Then in the Mediator, I clicked on the assign button, below the transformation button and opened the properties node. I assigned a dummy value to the wsa.messageid, then I switched to the source of the mediator component:
I also added an assignment to the remoteAddress property:
In the source this becomes:
In your case I would try to add <property name="oracle.webservices.http.headers">x-CentraSite-APIKey</property> to the webservice reference. Add an assignment to a transport.http.remoteAddress property like I did.
Then I would try to change $out.property.transport.http.remoteAddress to $out.property.transport.http.x-CentraSite-APIKey and see what it does. If that does not do the trick, try simply $out.property.x-CentraSite-APIKey.
Could you report back if this worked?