This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes JerseyClient and HttpClient - connecting to SSL secured web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JerseyClient and HttpClient - connecting to SSL secured web service" Watch "JerseyClient and HttpClient - connecting to SSL secured web service" New topic
Author

JerseyClient and HttpClient - connecting to SSL secured web service

Colin Duggan
Ranch Hand

Joined: Feb 23, 2008
Posts: 41
Hi,

I'm using Jersey Client along with HttpClient4 to connect to a JAX-WS web service. The service URL is protected by SSL.

I'm configuring my HttpClient to include a Scheme for SSL using port 443. The JerseyClient attempts to connect to the service however it does so using regular HTTP on port 80. If i run the code in debug and modify the port to use 443 i can see the request being sent (i have debug enabled in my logger) however the connection then gets reset and the request fails.



I need to use the HttpClient along with JerseyClient so i can have control over the credentials which are set. Does anyone have any ideas?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JerseyClient and HttpClient - connecting to SSL secured web service
 
Similar Threads
javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites whi
Java cookies ?
HttpClient file upload code review
Test the request sent? (maybe using a mock servlet somehow?)
Fake a post request from java class