on 04-29-2015 2:47 PM
Please help me with this issue
I need to consume a rest service,
Now i am working with module, that works fine
Then i Need to send some Headers to rest server,
Cache-Control: no-cache
Content-Type: application/json
App-Secret: 6694c25ade4cb0aaaaaa7c9c892195352354facd
I try with this module:
AddSOAPHeaderBean, but is not working
What is the better adapter type to achieve this rest cosumption: SOAP, or HTTP (axis)?
What kind of additional configuration do I need?
Thanks a lot for your help
Hi Juan
You did not specify which SP level your PO 7.31 system is on. Also, which receiver adapter are you using?
The headers you are referring to are Custom HTTP headers. These are available in SAP's REST adapter on the latest SP (7.31 SP15).
I've never used SOAP Axis so I won't comment about that, but you won't be able to access the HTTP headers using normal SOAP or even the AddSOAPHeaderBean module - these only allow you to access the SOAP header, not the HTTP header.
AFAIK, there is also no API available for custom adapter modules to access the HTTP header. Refer to a similar request recently
Re: Accessing SOAP header information in a custom adaptor module
For your case, my advice would be to upgrade to the latest SP on 7.31 and use the REST adapter to add the HTTP headers according to the blog above.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.