aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
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: 227
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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: 227
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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: 227
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!
 
Don't get me started about those stupid light bulbs.
 
subject: Jax-WS 2.1 can hit the wsdl in the browser but the client cannot find it.