on 04-12-2011 7:13 PM
Hi Forum,
I have a scenario on a PI 7.11 SP06, where a SOAP message is sent via HTTP to a SAP WAS Java.
The response contains in header a parameter"set-cookie" which has to be written in dynamic configuration.
For example: Set-Cookie: JSESSIONID=DF4D3F35636D8E3549490B678SAP9403229; Path=/
Therefore, i use SOAP adapter with axis extension, but the "set-cookie" content is not written to dynamicconfiguration.
Here is my axis adapter configuration. Do you see something wrong here?
**Processing Sequence**
1 AF_Adapters/axis/AFAdapterBean afreq
2 AF_Adapters/axis/HandlerBean xireq----------------------O/B Handler
3 AF_Adapters/axis/HandlerBean trp--------------------------- HTTPSender
4 AF_Adapters/axis/HandlerBean dcres----------------------This is for Dynamic Configuration (read)
5 AF_Adapters/axis/HandlerBean xires------------------------O/BHandler
6 AF_Adapters/axis/AFAdapterBean afres
**Module Configuration**
dcres handler.type java:com.sap.aii.axis.xi.XI30DynamicConfigurationHandler
dcres key.1 read http://sap.com/xi/XI/System/HTTP SetCookie
dcres location.1 header
dcres value.1 set-cookie
trp handler.type java:com.sap.aii.adapter.axis.ra.transport.http.HTTPSender
trp module.pivot true
xireq handler.type java:com.sap.aii.axis.xi.XI30OutboundHandler
xires handler.type java:com.sap.aii.axis.xi.XI30OutboundHandler
I followed the [How To Guide|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b092777b-ee47-2a10-17b3-c5f59380957f] which is unfortunately for 7.0.
Also i tried with "set-cookie" and "Set-Cookie" without success. I have written a small java test which is accessing
this service and I can see parameter "set-cookie" in the header. So with small letters should be okay.
I have also read this very similar [sdn thread|;.
Tests with writing constants to dynamicconfiguration works without any problem.
I'm not sure if i have the correct handler classes. Is there any documentation about the handlers?
Any help is very appreciated.
Thanks in forward and best regards,
Sigi
Hi Sigi,
Have you checked SAP Note 1039369 - FAQ XI Axis Adapter ?
BR
Maciej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
thanks for response.
I'm aware of these functions so I tried the test to create a dummy entry in header and read it from there.
So first i used which wrote constant to ASMA
dcres1 key.1 insert http://sap.com/xi/XI/System/HTTP dummy
dcres1 value.1 12345
Then I used write to move that constant from ASMA to header
dcres2 key.1 write http://sap.com/xi/XI/System/HTTP dummy
dcres2 location.1 header
dcres2 value.1 dummy
Finally i used read on that dummy value, creating a new entry in ASMA based upon that dummy entry
dcres3 key.1 read http://sap.com/xi/XI/System/HTTP SetCookie
dcres3 location.1 header
dcres3 value.1 dummy
So the "read" entry is correct in my origin settings. So now I know that the "set-cookie" header parameter from Java WAS response is not passed through SOAP Axis adapter.
Does anybody know if there are settings which have to be changed in system? Or is that a design as usual, that the set-cookie parameter is not passed to SOAP AXIS HTTP-header params?
Thanks in forward and best regards,
Sigi
Edited by: Siegfried Ertl on Apr 13, 2011 3:06 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with (instead of read):
dcres key.1 insert http://sap.com/xi/XI/System/HTTP SetCookie
or:
dcres key.1 write http://sap.com/xi/XI/System/HTTP SetCookie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sigi,
I think insert will ignore parameter
location.1 | header
And write is for writing ASMA to header/context/message.
But you can try to use combination of both. First try with
insert
to create key in ASMA with some dummy value and then with
read
to read header parameter set-cookie for that ASMA key.
Martin
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.