Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web-Service Hello World Problem For Newbie  RSS feed

 
Perry Terrance
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I'm a newbie to Web-Services and have been following this tutorial point-to-point http://24bytes.com/helloworlds/WebService/hellowebservice.html.

Essentially all the code I wrote is the following:



I let Eclipse's Generate Web Service automator do the rest. But it seems its not deploying to my Tomcat correctly at all! It's publishing just fine to Tomcat but when I goto my configured address
http://localhost:9080/HelloWorldWebService/ - which is what I think the auto-generated WSDL was pointing to - it kept saying 404 - File Not Found.

Now the tutorial in the link wasn't clear how the web-service address was configured, but I assumed that whatever the Web Service automator spit-out as the WSDL - should have it correctly configured once the WAR was pushed to Tomcat...

I know this is a rookie-mistake, but what am I doing wrong?
 
Perry Terrance
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I figured it out myself!

Apparently in the targetNamespace generated by the automator was something really stupid like: http://helloworld/. I had to manually edit it to localhost, and now it works.

So apparently (if I am understanding this right) - I have to manually make sure the Namespace of my deployed EAR matches correctly whatever http://yada/yada that the Web-Service was ultimately be on - so if the EAR is in a http://localhost/myFirstProject/, then I have to make sure my webservice namespace is targetted to that... Rookie-Mistake indeed...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!