Title: Message

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 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. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 7:08 AM
To: '[EMAIL PROTECTED]'
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 configuration.

-----Original Message-----
From: Wagle, Shriniwas [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 8:52 AM
To: [EMAIL PROTECTED]
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 [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

 

****************************************************************************

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.

 ***************************************************************************

 

Reply via email to