Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run:
- Exception in thread "main" javax.xml.ws.WebServiceException: Falha ao acessar o WSDL em https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl. Ele falhou com:
- Server returned HTTP response code: 401 for URL: https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl.
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:250)
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:231)
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:194)
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:163)
- at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:348)
- at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:306)
- at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:215)
- at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:196)
- at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:192)
- at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
- at javax.xml.ws.Service.<init>(Service.java:77)
- at br.com.correios.afii.service.AfiiWS.<init>(AfiiWS.java:42)
- at br.com.correios.afii.service.Main.main(Main.java:14)
- Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl
- at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)
- at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
- at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
- at java.net.URL.openStream(URL.java:1038)
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:984)
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:385)
- at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:216)
- ... 11 more
- Java Result: 1
- CONSTRUÍDO COM SUCESSO (tempo total: 9 segundos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement