Title: 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 [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 23, 2004 4:47 AM
To: [EMAIL PROTECTED]
Subject: URL in ServiceLocator

Hi 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



Reply via email to