Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 17758 invoked from network); 28 Aug 2006 08:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Aug 2006 08:20:28 -0000 Received: (qmail 58843 invoked by uid 500); 28 Aug 2006 08:20:20 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 58823 invoked by uid 500); 28 Aug 2006 08:20:20 -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 58812 invoked by uid 99); 28 Aug 2006 08:20:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Aug 2006 01:20:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.26.193.89] (HELO server3.software-ag.de) (193.26.193.89) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Aug 2006 01:20:19 -0700 Received: from server3.software-ag.de (localhost [127.0.0.1]) by localhost.software-ag.de (Postfix) with ESMTP id B661583900 for ; Mon, 28 Aug 2006 10:19:56 +0200 (CEST) Received: from DAEMSG03.eur.ad.sag (unknown [10.20.160.61]) by server3.software-ag.de (Postfix) with ESMTP id A673182A1E for ; Mon, 28 Aug 2006 10:19:56 +0200 (CEST) Received: from DAEMSG03.eur.ad.sag ([10.20.160.60]) by DAEMSG03.eur.ad.sag with Microsoft SMTPSVC(6.0.3790.1830); Mon, 28 Aug 2006 10:19:58 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: [Axis2]How to deploy/undeploy service programmatically? Date: Mon, 28 Aug 2006 10:19:57 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Axis2]How to deploy/undeploy service programmatically? thread-index: AcbKZSpI0GaZt0nkQ2OuZE/pNYCmJQAFOouw From: "Kedar, Shahar" To: X-OriginalArrivalTime: 28 Aug 2006 08:19:58.0248 (UTC) FILETIME=[BFFCE280:01C6CA7A] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Eran, Is there any way of getting the Axis2 configuration without implementing a service class or handler? The reason I'm asking is that according to my understanding, both handlers and service implementations are only invoked when sending a request to an already deployed service. But what if I want to programmatically deploy\undeploy a web service without invoking an already existing service? Thanks, Shahar Kedar Software AG Israel -----Original Message----- From: Santoso Nugroho [mailto:santoso.n@gmail.com]=20 Sent: Monday, August 28, 2006 8:45 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]How to deploy/undeploy service programmatically? Hi, Thanks for the answer, however how do I specify my wsdl so that axis2=20 can use my wsdl instead of using the generated wsdl? Thanks, santoso Eran Chinthaka wrote: > Santoso Nugroho wrote: > =20 >> Hi, >> >> How to deploy a service programmatically given that I have the service >> class, services.xml and the WSDL? >> The problem I have is that I must be able to create and deploy the >> service during runtime and the information (i.e. service name and the >> WSDL) only availables at runtime. >> =20 > > > > AxisService myService =3D > org.apache.axis2.util.Utils.createSimpleService(serviceName, > new RawXMLINOutMessageReceiver(), > MyService.class.getName(), > operationName); > // The above is to deploy a service with an IN-OUT operation. Change the > // message receiver accordingly. > > getConfigurationContext().getAxisConfiguration().addService( > service); > > BTW, from where do you wanna do this? Inside a handler, service. > If (insideHandler) > // get access to the config context thru the message context passed in > > else if (insideServiceImplClass) > // get access to config context through the message context passed in > thru message context injection (refer http://www.wso2.net/kb/106 or > implement Service interface to your service class ) > > -- Chinthaka > > =20 --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org