Skip to Content
avatar image
Former Member

SOAP header problem

Dear experts,

I have a question need your help.
I create a web service server base on Axis2 which is deployed on Tomcat.

and I create a consumer service by SAP side which need to consume the web service.

then I wrote a abap report to display the response message.

but the problem is: i want to use Axis2 soapsession to store the data between 2 java methods (means 2 services), if I want to use this kind of session, soap need to support WS-A first, then I need to get the specific node which store soapsession id in response header and send them back to server next time.

I search the internet, found

IF_WSPROTOCOL_WS_HEADER->GET_RESPONSE_HEADER

this method can get the soap response header, but when I used it in my abap report, I got nothing! why? can someone help?

when I use SRT_UTIL to trace the response payload, I found sap could get the correct xml payload, but why this method GET_RESPONSE_HEADER couldn't get any data?

SRT_UTIL trace

abap code

sap3.jpg(144.8 kB)

request

response

sap1.jpg (156.0 kB)
sap2.jpg (102.0 kB)
sap3.jpg (144.8 kB)
sap4.jpg (84.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers