wood burning stoves 2.0*
The moose likes Web Services and the fly likes WSDL access error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL access error" Watch "WSDL access error" New topic

WSDL access error

Anuradha Prasanna
Ranch Hand

Joined: Mar 09, 2006
Posts: 115
Iam new to web service.
Started trying my first simple program.

The following is the code i used.

Here is the simple test class as follows for the above web service.

i get the following error, when i run the test class,

Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: It failed with:
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:162)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:144)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:263)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:226)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
at javax.xml.ws.Service.<init>(Service.java:56)
at javax.xml.ws.Service.create(Service.java:680)
at samples.webservice.TestEJB.getPort(TestEJB.java:29)
at samples.webservice.TestEJB.main(TestEJB.java:15)
Caused by: java.io.FileNotFoundException:
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
at java.net.URL.openStream(URL.java:1010)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:805)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:262)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:129)
... 8 more

I copied the example tutorial to run this example.
Can anyone please explain me how to correct the error.
What should be the value of the "endpointURI" in the TestEJB class in lines 1 and 2. I have no idea what it is used for and what's the value for it? If i correct it, then may be my example will run without error.

I guess its a very basic one for people in this form.
Please help me fix this.

SCJP 6.0 90%
QiFeng Lee

Joined: Nov 11, 2009
Posts: 3
Maybe I can help you
remove the "?wsdl" from the endpoint string.
QiFeng Lee

Joined: Nov 11, 2009
Posts: 3
QiFeng Lee

Joined: Nov 11, 2009
Posts: 3
Sorry,Please forget privious replay
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175

hard li wrote:

Please check your private messages for an important administrative matter

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link: http://aspose.com/file-tools
subject: WSDL access error
Similar Threads
stateless session as a webservice
CertificateException: No name matching <hostname> found.
Attempt to retrieve Sharepoint WSDL fails with “Server redirected too many times”
Exception thrown While Running a Client
JAX-WS Service invocation fails after service discovery with JAXR