Hi there,
I'm Matthieu DELMAS, and this is my first post on Apigee questions. Yeeah 🙂
So i'm blocking on something that might be very simple..
Ok, i hope you have enougth infos, just ask if not.
Thanks for helping me there !
Matthieu
ps: i love Apigee 🙂
Solved! Go to Solution.
Okay my bad. I found a simple solution :
I going to try improving "form parameters" to a simple JSON . Nvm, Hope this can help someone ^^
Matt
Okay my bad. I found a simple solution :
I going to try improving "form parameters" to a simple JSON . Nvm, Hope this can help someone ^^
Matt
Yess - correct. The AssignMEssage Add/Headers section can be used to add HTTP Headers, but cannot be used to add SOAP Headers.
Use the Set/Payload section to set a SOAP message, including headers.
If you have a SOAP payload and want to modify it, to inject SOAP Headers, you won't be able to do that cleanly with AssignMessage. In that case, you may need to use the XSLT policy, or one of the custom Java policies that inserts headers.
ex1: wssec-signing https://github.com/DinoChiesa/ApigeeEdge-Java-WsSec-Signature
ex2: Edit-Xml-Node https://github.com/DinoChiesa/ApigeeEdge-Java-Add-Xml-Node
Now i have it improved for my purpose : having a proxy apigee for SOAP WS that get simple JSON in body in request and use this body to feed SOAP body, but handling SOAP header in the proxy ! so cool 🙂
for curious hackers :
I (very simply) extract JSON body :
and use theses variables in the AssigneMessage :
Important point is order of the policies in the PreFlow of Proxy Endpoints :
Ok with this, we can now send JSON body to feed the SOAP body, and handle the SOAP header in the AssignMessage policy, with this usecase it's to create a Yousign signature initialiization (just for curious).
My next step is to do same for REST to SOAP to REST proxy kind 🙂 hope this can help someone
Matt
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |