• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Webservice Socket closed exception

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic