Avatar of pbenito

asked on 

How do I fix the 'Failed to access the WSDL' error?

    I have a web service client written in Java 6 EE using NetBeans 6.5.  I am able to get the WSDL, and NetBeans appears to add the web service with no issues.  I can even ping the machine the web service is hosted on and view the WSDL in my browser.  When I go to run the program, I get the error below.  Any ideas on how to fix this?

javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://mm-pc2/Service.asmx?wsdl. It failed with: 
        at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:136)
        at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:122)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:189)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:159)
        at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:81)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at org.mitre.mm_pc2.Service.<init>(Service.java:45)
Caused by: java.io.FileNotFoundException: http://mm-pc2/Service.asmx?wsdl
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1288)
        at java.net.URL.openStream(URL.java:1009)

Open in new window

Editors IDEsWeb Languages and StandardsJava EE

Avatar of undefined
Last Comment

8/22/2022 - Mon