Hiya Nicholas. > I have been working with Axis & JBoss for a while and > I am finally getting around to putting together my > build system. It has occured to me that when I run > WSDL2Java, the client stubs generated have HARD CODED > IP addresses or host names, making the generated code completely > non-portable to other systems. So much for code once, run > anywhere. The > components affected are the ServiceLocator and the SoapBindingStubs.
I think the only one which makes it unportable is using the default method in the locator to create a stub as this is used to communicate with the server. The url used is the endpoint url or, if not supplied, then the location generating the wsdl. The only ones I can think of in the stub are the type and operation namespaces, neither of which really have any functional bearing (they just partition the types and operations). > The ServiceLocator issue seems to be trivial to fix, > but the SoapBindingStubs use the IP address/host name > in the namespaces. Use the methods with a URL parameter to provide the location of the service. If you don't like the generated one then you can override it using the endpointURL element within service (in the wsdd). The type and operations are affected by a number of things but the best one is probably the default namespace. This can also be specified in the wsdd file using the namespace elements in service. (The first namespace is the default one). > Am I doing something wrong here ? Does anyone have any > insight into this ? Let me know how you get on. Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user