What you mean, is that the WSDL file the client reads, before connecting to
your webservice contains a link to port 8080, right? (Service Declaration
in the WSDL looks aproxemately like this:
<service name="Service1">
<port name="Port1" binding="cai3g:blabla">
<soap:address
location="http://myhost.myserver.com:8080/test"/>
</port>
..... etc, etc...
</service>
I Ususually either ignore this, and use client code that does not use the
defined service URL's. But write client code like this ;
String wsdlPath = "file://path_to_wsdlfile.wsdl";
String endPointPath = "http://mytomacat:80/axis/myservice"
String nameSpaceURI = "http://someNameSpace/";
String serviceName = "MyService";
String portName = "MyPort";
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service helloService = serviceFactory.createService(new URL(wsdlPath), new
QName(nameSpaceUri, serviceName));
MyStub stub = new MyStub (new URL(endPointPath), helloService);
The point is that I like to keep exactly one WSDL file, I don't want to
duplicate it. In a real life scenario you often have multiple deployment
targets (Systems test, Accepance test, production etc.) The URL for the
endpoint will vary in those systems, hence keeping the endPoint URL in the
WSDL file is just silly.
Hope this helps.
Glenn
-----Original Message-----
From: MUHAMMAD IQBAL [mailto:[EMAIL PROTECTED]
Sent: 13. desember 2005 00:56
To: [EMAIL PROTECTED]; [email protected]
Subject: How to change PORT for WSDL
i have a wraper style web service developed in Apache Axis1.2.1, but when i
deploy it and try to access its wsdl, the URL for my service's WSDL has
included port 8080 but my tomcat is running on port 80,
can any one tell me that, how to change the port for my service's WSDL that
auto generated by Axis?
thnaks in advance.
Regards,
Muhammad Iqbal