Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Just curious; have you tried accessing the web service using soapUI?
If so, does it also fail?
Best wishes!
 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic