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

Webservices ..... Help please

 
suhail khan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I created a webservice and deployed it on tomcat 5.5.20 as a WAR file.
Tomcat is running on port 7080. Service WSDL is accessible at http://localhost:7080/ws/wservice?wsdl

Then using the URL above, I executed the "wsimport http://localhost:7080/ws/wservice?wsdl"
It parsed the wsdl and generated a bunch of class files. I created a JAR file of the class files and included them in my webapplication.

Now when I call the webservice via my webaplication, I get an error saying "Failed to access the WSDL at http://localhost:9080/ws/wservice?wsdl"

I do not know from where is this port 9080 is coming into the picture?
I decompiled all the class files (the ones generated by wsimport) and none of the class contain port 9080, I see the the correct port (7080) everywhere in the decompiled class files

Please tell me how to correct this.
One option is to change tomcat port to 9080 and that will fix the problem but I cannot do that. By the way, the webapp itself runs on the same tomcat and at the same port.

Thanks so much.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic