Hi Chris, thanks for your reply. I used a workaround to obtain the same result: I added a custom constructor which accepts the URL as parameter and then sets the serviceAddress class field. Since I cusmomized the generated class, I face the problem I mentioned in my first post (if I regenerate the stub classes I have to reapply all the modifications). Your suggestion could be very useful because it would not require ServiceLocator class modification but I' ve searched for such a method in my ServiceLocator class, and I haven' t found it. Maybe there is something wrong with my generated ServiceLocator class. Could you please tell me the name of the method you would use?
Thank you very much Massimo Barabino >The ServiceLocator class contains a method that accepts a service URL as >a parameter, and returns an appropriately configured Service class. >This method is the preferred one to use when the location is dynamic. > >My suggestion would be to modify the WSDL to point to a non-existent >service address, and then have your client program instantiate the >appropriate service class by passing the URL to the ServiceLocator >method. > >/Chris >