axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepak Kothule" <>
Subject RE: URL in ServiceLocator
Date Mon, 23 Aug 2004 17:53:52 GMT
Axis will generate the WSDL for the deployed services. If you use the
url http://localhost:8080/UserManager/services/Authentication?wsdl then
this will generate the WSDL with proper URL depending upon where you are
accessing it from. If you use http://mymachine:8080
<http://mymachine:8080/>  instead of localhost in above url, the WSDL
generated by axis will contain url
http://mymachine:8080/UserManager/services/Authentication , so it will
be always a valid location. You can also override the wsdl generated by
axis if you want to use your static file by specifying its location in
your service deployment descriptor under <wsdlFile> tag. 
Well, as Shriniwas and Peter mentioned earlier in this thread, you can
always provide the url to ServiceLocator to obtain the stub. 
- Deepak.

From: Pascale, Peter H. [] 
Sent: Monday, August 23, 2004 7:08 AM
To: ''
Subject: RE: URL in ServiceLocator
You can build your configurable service locator code however you want,
and use the ServiceLocator method that takes the URL determined from
	-----Original Message-----
	From: Wagle, Shriniwas [] 
	Sent: Monday, August 23, 2004 8:52 AM
	Subject: RE: URL in ServiceLocator
	A WSDL is supposed to provide each and every piece of
information required to invoke a service, which includes the location of
the service.  So, that's why the URL exists in the WSDL. 
	In any case, if you take a look at the ServiceLocator, you'll
find two methods to obtain the stub - one which takes a URL and one
which does not.  
	-----Original Message----- 
	From: Renato Eschini [] 
	Sent: Monday, August 23, 2004 4:47 AM 
	Subject: URL in ServiceLocator 
	Hi all, 
	this is my java2wsdl ant task: 
	<target name="GenerateWsdl"> 
	            <mapping namespace="urn:UserManager" 
	this the part of wsdl about the service: 
	<wsdl:service name="UserManagerService"> 
	      <wsdl:port binding="impl:AuthenticationSoapBinding" 
	First question: why the address is cabled in wsdl? what does it
	So when I generate the code with wasdl2java Ant read
from wsdl and the result of ServiceLocator is:
	// Use to get a proxy class for Authentication private final
java.lang.String Authentication_address =
	but I want to generate a configurable ServiceLocator: what is
the right way to do it? 
	Thanks all ;) 
	Ciao e buon lavoro, 
	    Renato Eschini 
	    Inera srl 
	    Via Vespucci 41 
	    56100 Pisa 
	    Tel:         (+39) (0)50 2201218 
This email may contain confidential 
material. If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network.

View raw message