I have a struts app in which i use an object to send soap messages (axis2) with or without ssl (input is an url). I thought i could make it optional by setting the javax.net.ssl properties or not. The point is to get an ssl recv error if a call is made to a web service that requires clientauthentication without a client cert.
However once the javax.net.ssl paremters are set i can not reset them for the http call it seems and thus a call without setting client cert etc gets a valid authentication. Does anyone know how to enable/disable this for each seprate call?