I have a question about how everyone handles client generation and the 
wsdlsoap:address location attribute.  
I have generated a client using the wsgen ant task, which if fed a copy of the 
wsdl.  In order to access my web
service from a different machine, I had to make sure to change the location 
attribute from localhost:port to my machine name.
But how does everyone handle moving from development, thru test environments 
and on to production when the machine 
names where the service resides is always different.
 
Do you re-generate for each environment?  Do you generate and then modify the 
generated source code to use a 
java property for the service URL?  Possibly some other option.   
 
For example, I see in the generated code, a DecryptionClient class, and its 
constructors calls service.addEndPoint().  The
3rd parameter on that call is the wsdlsoap:address location attribute value.   
So I could modify the code generated code
to take a parm and pass that url along to the addEndPoint call to make the 
client creation more 'dynamic' but is that
how everyone handles this situation???
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

Reply via email to