Avatar of pbenito
pbenito

asked on 

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

Hi,
 
    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?

Thanks!
WARNING: null
javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://mm-pc2/Service.asmx?wsdl. It failed with: 
        http://mm-pc2/Service.asmx?wsdl.
        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
sukalp

8/22/2022 - Mon