This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Services and the fly likes Webservice Socket closed exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice Socket closed exception" Watch "Webservice Socket closed exception" New topic

Webservice Socket closed exception

balaji subbu

Joined: Nov 14, 2011
Posts: 11
Hi Java Leads,
while i am connecting client web-service using proxy details (username/password/IP/), we getting below exception

" Failed to access the WSDL at: https://webservices?WSDL. It failed with:
Socket is closed."

can any one please explain why i am getting this ,what i have done mistake.

And here the code what i have used
Authenticator.setDefault(new ProxyAuthenticator(username, password));


public class ProxyAuthenticator extends Authenticator {

private String userName, password;

protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(userName, password.toCharArray());

public ProxyAuthenticator(String userName, String password) {
this.userName = userName;
this.password = password;
Kindly help me to fix this.

I agree. Here's the link:
subject: Webservice Socket closed exception
It's not a secret anymore!