axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanooj Padmakumar <>
Subject SSL factory for axis -- help needed
Date Sun, 11 Jan 2009 17:42:49 GMT
Hi --
Have any one tried implementing apache axis's SecureSocketFactory? The mail is about one issue
that I am facing with its implementation. could anyone please shed some light on this... thanks
I have two implementations of SecureSocketFactory, say SSL1, SSL2 .. i.e.
public class SSL1 extends DefaultSocketFactory implements SecureSocketFactory
public class SSL2 extends DefaultSocketFactory implements SecureSocketFactory
Now i am making a call to a https webservice endpoint, say , before
making this call, i do AxisProperties.setProperty passing in the class name of SSL1, socket
is created successfully and the service is invoked fine.
 now for a second https webservice say i wish to use SSL2 as the
the socketfactory, again call the AxisProperties.setProperty passing in SSL2 as the class
name... this however doesnot call SSL2 on seein the https url, instead SSL1 itself is being
used. this is believe is an issue of axis caching its socketfactory and hence reusing the
same for other requests in the same session. is there any resolution for this issue, as my
requirement is to provide a second implmenetation(SSL2 in this case) for the second service..

View raw message