File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Jax-WS 2.1 can hit the wsdl in the browser but the client cannot find it. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Jax-WS 2.1 can hit the wsdl in the browser but the client cannot find it." Watch "Jax-WS 2.1 can hit the wsdl in the browser but the client cannot find it." New topic
Author

Jax-WS 2.1 can hit the wsdl in the browser but the client cannot find it.

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
Hi,
I run the webservice and hit the wsdl just fine from the browser. But the client when goes into the following method:
public javax.xml.ws.spi.ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, javax.xml.namespace.QName serviceName, java.lang.Class serviceClass) { /* compiled code */ }

throws:

javax.xml.ws.WebServiceException

and the cause is:

java.io.FileNotFoundException: http://localhost:8080/services/WebService?wsdl

the message is:

Failed to access the WSDL at: http://localhost:8080/services/WebService?wsdl. It failed with:
http://localhost:8080/services/WebService?wsdl.

heeeelp please.
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
Just curious; have you tried accessing the web service using soapUI?
If so, does it also fail?
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
Ivan Krizsan wrote:Hi!
Just curious; have you tried accessing the web service using soapUI?
If so, does it also fail?
Best wishes!


I do not know how
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
You can download soapUI from http://eviware.com/
...and here is a description on how to use it: http://www.soapui.org/Getting-Started/your-first-soapui-project.html
Best wishes!
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
Ivan Krizsan wrote:Hi!
You can download soapUI from http://eviware.com/
...and here is a description on how to use it: http://www.soapui.org/Getting-Started/your-first-soapui-project.html
Best wishes!


It says error importing wsdl
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
Well, if soapUI isn't able to access the service, then the problem most likely is not your client.
Can you supply the code of your web service and some information concerning the container to which you deploy it?
If you have a Eclipse or NetBeans project, then that would be even better.
Best wishes!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Jax-WS 2.1 can hit the wsdl in the browser but the client cannot find it.
 
Similar Threads
Why cant i see my WSDL
WSDL 2.0 webservice with axis2
Https and wsdl
Get java.util.List from webservice
Can't see the WSDL file