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.