cancel
Showing results for 
Search instead for 
Did you mean: 

Rest service from po 7.31, with FormatConversionBean

juan_vasquez2
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

engswee
Active Contributor
0 Kudos

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