I have developed my application that send SOAP request using SAAJ. for one of customer.
Recently, Customer implemented security file keystoke (jks) file in the server and now I am facing problem to send signed soap messages.
Please have a look how my system is working without any sign. but now its facing error 403 mean not allowing the service. I need to send Signed Saop message
using the key file
Have you had a look at WSS4J (http://ws.apache.org/wss4j/)?
As far as I understand, there is code in there that can help you sign SOAP messages - at least if the server follows standards in WS-Security.
WS-Security is not trivial stuff, so no simple examples are available. But it's not rocket science, either. Download Axis2, download the Rampart module that implements WS-Security and copy its *.mar and *.jar files into the Axis web app. Then check out the "samples" directory that comes with Rampart.
posted 9 years ago
Download rampart module source code. It has got some samples where signing is implemented. I have tried theses earlier, let me know if you have any issue executing these.