(This is with Java 7.)
We are considering using javax.xml.soap.SOAPConnection and its associated stuff to do some relatively quick and dirty sending and receiving of SOAP messages.
However, the server this will be connecting uses certificates whose trust anchors are not in the default Java 7 truststore. We do not want to modify the default truststore but instead want to use a custom truststore.
If we were working at a lower level we could do stuff like getting an SSLContext, reinitializing it with the custom truststore, getting an SSLSocketFactory from it and so on.
But from what I can see in the SOAPConnection API and the APIs of associated classes there is no obvious way to change the SSLContext instance that SOAPConnection implementations use.  I could change the default context but that changes things JVM-wide which is not what we want to have happen.
Are we just out of luck if we want to use SOAPConnection then?  Any other libraries that will let you create SOAP requests relatively simply but let you specify the SSLContext or SSLSocketFactory to use?