Call and HttpsUrlConnection

O

oziris

Hi,

I would like to send my SOAP requests via a HttpsURLConnection. I
looked around the Axis API unsuccessfully.

Here where I am. I create a HttpsURLConnection. By this way I set a
TrustManager.

<code>
SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(
null,
new TrustManager[] {new MyTrustManager()},
SecureRandom.getInstance("SHA1PRNG"));
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
URL url = new URL("...");
HttpsURLConnection urlc = (HttpsURLConnection)url.openConnection();
urlc.setSSLSocketFactory(sslSocketFactory);
</code>

The only way I find consists in creating manually my SOAP request and
write it in the OutputStream of a socket.

But I would like still use the Call object to construct my request.

Even a birth of idea would be appreciated.
Thanks and great week.

-o--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top