Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 5910 invoked by uid 500); 22 Aug 2003 13:42:21 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 5836 invoked from network); 22 Aug 2003 13:42:20 -0000 Sender: Guillaume.Sauthier@BULL.NET Message-ID: <3F45DABD.1B011B61@Bull.Net> Date: Fri, 22 Aug 2003 10:56:30 +0200 From: Guillaume Sauthier Organization: Bull S.A. X-Mailer: Mozilla 4.78 [en] (X11; U; AIX 4.3) X-Accept-Language: fr, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Client Side deployment References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello That's exactly what I am doing ! But It's not working !! But I didn't find a solution yet. Maybe am I doing someting wrong... I have a client-config.wsdd, axis generated Stub and Service Implementation. I think that we mmight use the ServiceLocator.setEngineConfiguration method with a FileProvider("path/2/client-config.wsdd") as argument. I drop here a little code snippet to show you : client-config.wsdd ------------------- ------------------- Java class : -------------- abServ = new AddressBookServiceLocator(); /* set the configuration here */ String path = System.getProperty("addressbook.dir") + "/../ab_client/"; try { path = new File(path).getCanonicalPath() + "/"; } catch(Exception e) { System.err.println("IOError on " + path); } EngineConfiguration conf = new FileProvider(path + "client-config.wsdd"); System.out.println("file used : " + path + "client-config.wsdd conf=" + conf); try { // Configuration of the engine by the config object conf.configureEngine(service.getEngine()); // try to get some objects to see if EngineConfig is OK SOAPService service = conf.getService(new QName("AddressBookService")); Handler handler = conf.getHandler(new QName("simple")); if (service == null) System.out.println("Service null"); if (handler == null) System.out.println("handler null"); } catch (ConfigurationException ce) { System.err.println("ConfError"); } try { ab = abServ.getAddressBookService(); } catch(javax.xml.rpc.ServiceException se) { se.printStackTrace(System.err); } -------------- "Gupta, Ankit" wrote: > > Hi group, > I have a web service and I want the clients to work with stubs. I wish to know whether it is possible to deploy client side handlers working with java stubs. Using The "org.apache.axis.client.Service" class it is possible to do so but is it possible with java stubs. > Any leads will be greatly appreciated > Thanks in Advance > Ankitb Gupta