Take the 2-minute tour ×  I have been provided a WSDL for a
webservice. I am now required to digitally sign that request.
The previous developer utilized the Eclipse feature to generate
proxy classes. Add the WSDL to the project, then right click on
it, click "Web Service", then "Generate Client".  This worked
fine until we were required to digitally sign the request. I did
some digging and it looks like Axis 1.4 doesn't allow you to
sign requests. You can use WSS4J to do that. I mavened in WSS4j
1.5 into my project.  I'm at a loss on how to digitally sign the
request. Here is my existing code that uses the proxy classes:
XiSecureWSServiceLocator service = new
XiSecureWSServiceLocator(); XiSecureWSPortType proxy =
service.getXiSecureWSServicePort(); ((Stub)
proxy).setTimeout(paymetricTimeOutinMillisec);
SDecrypt_InputType sdi = new SDecrypt_InputType();
SDecrypt_OutputType sdo = null; sdo =
proxy.pm_SingleDecrypt(sdi);  What I want to do is something
similar to this article. Here is a function they used: