cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

java.io.IOException: Server returned HTTP response code: 401 for URL

Former Member
0 Likes
12,646

Hi,

Third part is getting the below error when invoking the webservice in XI

at java.lang.Thread.run(Thread.java:662)

Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL <URL LINK>

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)

at java.net.URL.openStream(URL.java:1010)

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:804)

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:262)

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:129)

This is not because of the invalid credentials. It was working before one month. Please suggest.

Thanks and Regards

Suma S

View Entire Topic
baskar_gopalakrishnan2
Active Contributor
0 Likes

>>Third part is getting the below error when invoking the webservice in XI

401 error is unauthorized. This is purely authorization issue. Check with third party and see what is the user credentials they are using.. I mean username/password to access xi's webservice.

Tips:

You can test the webservice that you host in xi via soapui or xmlspy using username and password. If you are able to access the service then pass those credentials to third party to use it.