on 09-20-2015 6:52 PM
Hi,
The problem in a nutshell is that axis modifies the response message(add "blank lines, spaces, tabs") and signature validation fails, detailed explanation:
There is a webservice that uses WS-Security token profile x509 1.0, both the request and the response, and SAP PI should consume this webservice.
I set the whole scenario, and when testing, I see that the request is properly signed, but validation of the response message signed failure.
I use the tcpgateway to see what was the response message and compare it with the message that I see in the log of the NWA, I see that was modified by axis, some images:
Original response message from tcpgateway:
Modified message from NWA:
And the result of signature verification:
I have found in note "1039369 - FAQ Axis XI Adapter" question "11.I am getting a corrupted signature" of the section "Advanced usage questions" a similar problem but the sender scenario, which it proposes using the parameters "enableNamespacePrefixOptimization -> false" and "disablePrettyXML -> true" to solve the problem, but for the scenario receiver does not, some images:
Configuration:
Message modified from NWA(you can see that there is less blank lines, but not the original message !!!):
And the result of signature verification(this difference between the calculated and digest sent!):
At first I thought the problem was WSS4J but I used all versions (1.5.4, 1.5.5, 1.5.6, 1.5.7) and the problem was always the same, but seeing the log NWA not me doubts remain.
any ideas?.
Best regards.
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.