-----Original Message-----
From: Wagle, Shriniwas [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: URL in ServiceLocatorA 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 [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 23, 2004 4:47 AM
To: [EMAIL PROTECTED]
Subject: URL in ServiceLocatorHi all,
this is my java2wsdl ant task:<target name="GenerateWsdl">
<axis-java2wsdl
classname="com.inera.ws.UserManager"
location="http://localhost:8080/UserManager/services/Authentication"
namespace="urn:UserManager"
output="WEB-INF/usermanager.wsdl"
typemappingversion="1.2">
<mapping namespace="urn:UserManager"
package="com.inera.ws.UserManager"/>
</axis-java2wsdl>
</target>this the part of wsdl about the service:
<wsdl:service name="UserManagerService">
<wsdl:port binding="impl:AuthenticationSoapBinding"
name="Authentication">
<wsdlsoap:address
location="http://localhost:8080/UserManager/services/Authentication"/>
</wsdl:port>
</wsdl:service>First question: why the address is cabled in wsdl? what does it mean?
So when I generate the code with wasdl2java Ant read <wsdlsoap:address location="http://localhost:8080/UserManager/services/Authentication"/> from wsdl and the result of ServiceLocator is:
// Use to get a proxy class for Authentication private final java.lang.String Authentication_address = "http://localhost:8080/UserManager/services/Authentication";
but I want to generate a configurable ServiceLocator: what is the right way to do it?
Thanks all ;)
Ciao e buon lavoro,
Renato
----
Renato Eschini
Inera srl
Via Vespucci 41
56100 Pisa
Tel: (+39) (0)50 2201218
WWW: http://www.inera.it
****************************************************************************
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.
***************************************************************************
