I am trying to create a Web Service client. The WSDL style is RPC/Encoded and the service runs over SSL & requires a digital certificate.
So far I have done the following:
(1) Downloaded the certificate from the Client Site using IE. (2) Imported the *.cer file into a keystore. (3) Generated a client using the Axis 1.4 WSDL2Java tool (RPC Encoded not support by Axis 2 or XFire).
The problem is, I don't know how to get the client to use my local keystore when it talks to the server. I was hoping that I could just add some code to the following client:
AxisGeneratedService service = new AxisGeneratedServiceLocator(); AxisGeneratedPort port = service.getAxisGeneratedPort(); port.doService();
I would prefer not to change the code that was generated by Axis, as this can easily be overwritten.
Can anyone help me out here? Do I need to do more with the keystore? Or can I just add a few simple lines of code to me client?