Axis SSL authentication help!
am am <[email protected]>
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am using Axis 1 and need to do SSL authentication of a web service.
I found that I need to use: AxisProperties.setProperty("axis.socketSecureFactory","com.example.MySSLSocketFactory"); to set my custom factory and trust managers.
Problem: I also need to skip any server authentication in some requests (e.g. use SunFakeTrustSocketFactory).
I assume that this AxisProperties.setProperty is some central property that affects all threads, right? So how could I implement my use case?
Keep reseting AxisProperties.setProperty before each web service call? Is this the proper way? But I found this bug ticket that seems to complaint that once the socket factory is set in AxisProperties it is cached and any new setting has not effect:https://issues.apache.org/jira/browse/AXIS-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs
Is there a workarround for this?
If you could help me here it would be great guys!
Thank you