Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 14101 invoked from network); 20 Jul 2005 06:28:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 06:28:27 -0000 Received: (qmail 38008 invoked by uid 500); 20 Jul 2005 06:28:14 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 37993 invoked by uid 500); 20 Jul 2005 06:28:14 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 37978 invoked by uid 99); 20 Jul 2005 06:28:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 23:28:14 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.214.218.110] (HELO isis.univ-nancy2.fr) (194.214.218.110) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 23:28:09 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by isis.univ-nancy2.fr (Postfix) with ESMTP id 6DFDB30121 for ; Wed, 20 Jul 2005 08:28:11 +0200 (CEST) Received: from isis.univ-nancy2.fr ([127.0.0.1]) by localhost (isis.univ-nancy2.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06284-08 for ; Wed, 20 Jul 2005 08:28:10 +0200 (CEST) Received: from [194.214.218.182] (cg011ml.univ-nancy2.fr [194.214.218.182]) by isis.univ-nancy2.fr (Postfix) with ESMTP id A02AA30115 for ; Wed, 20 Jul 2005 08:28:10 +0200 (CEST) Message-ID: <42DDEEF5.4050904@univ-nancy2.fr> Date: Wed, 20 Jul 2005 08:28:05 +0200 From: Mathieu Larchet Reply-To: mathieu.larchet@univ-nancy2.fr Organization: =?ISO-8859-1?Q?Universit=E9_Nancy_2?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Dynamic ServiceLocator References: <42DD02A0.8090808@univ-nancy2.fr> <1121790878.3591.71.camel@localhost> In-Reply-To: <1121790878.3591.71.camel@localhost> X-Enigmail-Version: 0.91.0.0 Content-Type: multipart/alternative; boundary="------------020408060201000201000309" X-Virus-Scanned: by amavisd-new at univ-nancy2.fr X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------020408060201000201000309 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Martin Grotzke wrote: >Hi Mathieu, > >On Tue, 2005-07-19 at 15:39 +0200, Mathieu Larchet wrote: > > >>Hello, >> >>I'am using wsdl2java to generate client classes for my service. >>wsdl2java generate a ServiceLocator.java class which >>contains direct references to my service endpoint (something like >>http://server.mydomain.com/axis/MyService). >> >>I want to specify in my client only the WSDL url. The service locator >>should be able to find dynamically the webservice endpoint but I can't >>find how. >> >> >You might want to try the following: > >YourServiceLocate sl = new YourServiceLocator(); >URL portAddress = new URL( "http://server.mydomain.com/YourService" ); >YourService service = sl.getYourService( portAddress ); > >Cheers, >Martin > > Again, you're submitting the service URL in your client. I want to submit only the WSDL URL in my client ant let it find itself the service endpoint. > > > >>Does anybody have already done something like this ? >> >>Thanks >> >>PS : Axis should work like this, PHP and Perl already work like this. >> >> >> -- Mathieu Larchet Centre de Ressources Informatiques Universit� Nancy 2 mathieu.larchet@univ-nancy2.fr 03-83-39-64-06 http://www.univ-nancy2.fr/ANNUAIRE/PERS/detail_pres.php?uid=mlarchet --------------020408060201000201000309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Martin Grotzke wrote:
Hi Mathieu,

On Tue, 2005-07-19 at 15:39 +0200, Mathieu Larchet wrote:
  
Hello,

I'am using wsdl2java to generate client classes for my service.
wsdl2java generate a <service-name>ServiceLocator.java class which
contains direct references to my service endpoint (something like
http://server.mydomain.com/axis/MyService).

I want to specify in my client only the WSDL url. The service locator
should be able to find dynamically the webservice endpoint but I can't
find how.
    
You might want to try the following:

YourServiceLocate sl = new YourServiceLocator();
URL portAddress = new URL( "http://server.mydomain.com/YourService" );
YourService service = sl.getYourService( portAddress );

Cheers,
Martin
  
Again, you're submitting the service URL in your client.
I want to submit only the WSDL URL in my client ant let it find itself the service endpoint.

  
Does anybody have already done something like this ?

Thanks

PS : Axis should work like this, PHP and Perl already work like this.

    


-- 
Mathieu Larchet
Centre de Ressources Informatiques
Université Nancy 2
mathieu.larchet@univ-nancy2.fr
03-83-39-64-06
http://www.univ-nancy2.fr/ANNUAIRE/PERS/detail_pres.php?uid=mlarchet
--------------020408060201000201000309--