Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 82876 invoked from network); 31 Jan 2006 09:40:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jan 2006 09:40:32 -0000 Received: (qmail 27537 invoked by uid 500); 31 Jan 2006 09:40:24 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 27042 invoked by uid 500); 31 Jan 2006 09:40: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: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 27031 invoked by uid 99); 31 Jan 2006 09:40:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 01:40:21 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dcendents@gmail.com designates 66.249.92.204 as permitted sender) Received: from [66.249.92.204] (HELO uproxy.gmail.com) (66.249.92.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 01:40:19 -0800 Received: by uproxy.gmail.com with SMTP id s2so188218uge for ; Tue, 31 Jan 2006 01:39:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ihNITcGuf2Gy71iGS7fG3I4GXQVIJyEKuxWNI3atBKv0NEDP+XcS+HSGk39s1Ti6hAA53vYLtkXBIVgKfnHyC34XnPx8iS6y/8VWHSUnY6gZIoPFwIoyHn4zZ6SJf89r2RsVHvRNb5vacroovwB1BxMIzrjTpFNovinw8Umn50E= Received: by 10.48.232.6 with SMTP id e6mr1257030nfh; Tue, 31 Jan 2006 01:39:57 -0800 (PST) Received: by 10.48.219.19 with HTTP; Tue, 31 Jan 2006 01:39:57 -0800 (PST) Message-ID: Date: Tue, 31 Jan 2006 09:39:57 +0000 From: Daniel Beland To: axis-user@ws.apache.org Subject: Re: alternative configuration to server-config.wsdd ? In-Reply-To: <43D8F033.7040602@capgemini.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8770_4570845.1138700397962" References: <43D880AA.90602@capgemini.fr> <43D8F033.7040602@capgemini.fr> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_8770_4570845.1138700397962 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you use maven (or ant), why don't you simply perform XSLT to integrate each deploy.wsdd in the server-config.wsdd. That's what I did in a war:webapp postGoal. On 1/26/06, Nicolas De Loof wrote: > > > I have to replace the className parameter in generated deploy.wsdd and > add some custom typeMappings. > Replacing className is easy, but adding typeMapping elements is more > difficult in my ant (maven.xml) build script. > > I'm trying another solution : > > It extends AxisServlet and it's init method : > It loads the (wsdl2java generated) deploy.wsdd, and uses WSDDService > methods to replace className parameter, append typemappings defined in > another xml file and deploy the service using > "ServiceAdmin.deployService(wsddService);" > > This doesn't work exactly as expected but I'm working on it... > > Nico. > > Tony Ingraldi a =E9crit : > > > Nicolas, > > > > Have you considered using org.apache.axis.utils.Admin? It can be > > used to create a server-config.wsdd file from a deploy.wsdd file. > > > > i.e. > > > > java -cp $AXISCLASSPATH org.apache.axis.utils.Admin server > > deploy.wsdd > > > > > > You may need to tweak the generated server-config.wsdd file, but the > > tweaking could potentially be automated with your scripting language > > of preference. > > > > > > On Jan 26, 2006, at 2:56 AM, Nicolas De Loof wrote: > > > >> The deploy.wsdd is generated as part of the build process (as > >> endpoint interface is not yet stable), but it requires to manually > >> update the server-config.wsdd to include the deploy.wsdd content. > >> Using AdminClient to deploy is not a solution as the web service has > >> to be started with the webapp (axis configuration is static) > >> > >> Is there any way to replace WEB-INF/server-config.wsdd based > >> configuration by a "programmable" configuration ? I'd like to extend > >> AxisServlet and automatically deploy my web service at application > >> startup from it's generated deploy.wsdd. > > > > > > -- > > Tony Ingraldi > > tingraldi@echostorm.net > > > > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, y= ou > are not authorized to read, print, retain, copy, disseminate, distribute= , > or use this message or any part thereof. If you receive this message in > error, please notify the sender immediately and delete all copies of thi= s > message. > > ------=_Part_8770_4570845.1138700397962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

If you use maven (or ant), why don't you simply perform XSLT to int= egrate each deploy.wsdd in the server-config.wsdd.

That's what I did= in a war:webapp postGoal.



On 1/26/06, Nicolas De Loof <nicolas.deloof@capgemini.com&g= t; wrote:

I have to replace the className parameter in generated deploy.wsdd and<= br>add some custom typeMappings.
Replacing className is easy, but adding= typeMapping elements is more
difficult in my ant (maven.xml) build scri= pt.

I'm trying another solution :

It extends AxisServlet and it'= s init method :
It loads the (wsdl2java generated) deploy.wsdd, and uses= WSDDService
methods to replace className parameter, append typemappings= defined in
another xml file and deploy the service using
"ServiceAdmin.dep= loyService(wsddService);"

This doesn't work exactly as expected= but I'm working on it...

Nico.

Tony Ingraldi a =E9crit :

> Nicolas,
>
> Have you considered using org.apache.axis= .utils.Admin?  It can be
> used to create a server-config.w= sdd file from a deploy.wsdd file.
>
> i.e.
>
> = ;    java -cp $AXISCLASSPATH=20 org.apache.axis.utils.Admin server
> deploy.wsdd
>
>
&= gt; You may need to tweak the generated server-config.wsdd file, but the> tweaking could potentially be automated with your scripting language
> of preference.
>
>
> On Jan 26, 2006, at 2:56 AM= , Nicolas De Loof wrote:
>
>> The deploy.wsdd is generated a= s part of the build process (as
>> endpoint interface is not yet s= table), but it requires to manually
>> update the server-config.wsdd to include the deploy.wsdd conte= nt.
>> Using AdminClient to deploy is not a solution as the web se= rvice  has
>> to be started with the webapp (axis config= uration is static)
>>
>> Is there any way to replace WEB-INF/server-config.= wsdd based
>> configuration by a "programmable" configur= ation ? I'd like to  extend
>> AxisServlet and automatic= ally deploy my web service at  application
>> startup from it's generated deploy.wsdd.
>
>
&g= t; --
>   Tony Ingraldi
>   tingraldi@echostorm.net
>

This= message contains information that may be privileged or confidential and is= the property of the Capgemini Group. It is intended only for the person to= whom it is addressed. If you are not the intended recipient,  yo= u are not authorized to read, print, retain, copy, disseminate,  = distribute, or use this message or any part thereof. If you receive this&nb= sp; message in error, please notify the sender immediately and delete = all  copies of this message.


------=_Part_8770_4570845.1138700397962--