aspose file tools*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice Socket closed exception" Watch "Webservice Socket closed exception" New topic
Author

Webservice Socket closed exception

balaji subbu
Greenhorn

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

"javax.xml.ws.WebServiceException: 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.

Thanks,
Balaji.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webservice Socket closed exception