This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice Socket closed exception

 
balaji subbu
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic