File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Webservices ..... Help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservices ..... Help please" Watch "Webservices ..... Help please" New topic

Webservices ..... Help please

suhail khan

Joined: Sep 20, 2009
Posts: 1
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.

I agree. Here's the link:
subject: Webservices ..... Help please
It's not a secret anymore!