Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 108719709 for ; Wed, 18 Apr 2012 12:40:59 +0000 (UTC) Received: (qmail 17389 invoked by uid 500); 18 Apr 2012 12:40:57 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 17256 invoked by uid 500); 18 Apr 2012 12:40:57 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 17241 invoked by uid 99); 18 Apr 2012 12:40:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 12:40:57 +0000 X-ASF-Spam-Status: No, hits=4.1 required=5.0 tests=HTML_MESSAGE,SPF_HELO_SOFTFAIL,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of colm.brady@roamware.com does not designate 64.68.70.99 as permitted sender) Received: from [64.68.70.99] (HELO roamware.com) (64.68.70.99) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 12:40:48 +0000 Received: from [192.168.1.11] ([95.45.226.23]) by roamware.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 18 Apr 2012 05:40:25 -0700 Message-ID: <4F8EB64E.2050507@roamware.com> Date: Wed, 18 Apr 2012 13:40:46 +0100 From: Colm Brady Reply-To: colm.brady@roamware.com Organization: Roamware User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: java-user@axis.apache.org Subject: Re: Best practices to support same services for WSDL 1.2 and 2.0 References: <4F8E8FA6.1030601@roamware.com> <4F8E937D.4050508@roamware.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------070504030604040804050204" X-OriginalArrivalTime: 18 Apr 2012 12:40:26.0250 (UTC) FILETIME=[6DF5BEA0:01CD1D60] --------------070504030604040804050204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thank you. On 18/04/2012 13:35, Sagara Gunathunga wrote: > > > On Wed, Apr 18, 2012 at 3:42 PM, Colm Brady > wrote: > > Dear Sagara, > > Many thanks for the response, however, if I use the > "useOriginalwsdl = true" parameter how is it possible to expose > both "User Defined" wsdls? > > My services directory is exploded, and I have the WSDL 1.2 version > exposed. How do I expose the WSDL 2.0 version?? Using "?wsdl2" > parameter returns an Axis2 "generated" WSDL 2.0 file. I want to > expose my custom WSDL 2.0 file.. Is this possible? How? > > > There is a open issue here[1] to enable "useOriginalwsdl" option for > WSDL 2.0 and the issue will be fixed soon. BTW Axis2 expect to have a > file called "ServiceName.wsdl" to pick up as the original WSDL > regardless it's version hence it's not possible to have two files same > time. I'm not sure feasibility to introduce new extension ( wsdl2 ?) > to achieve this. > > [1] - https://issues.apache.org/jira/browse/AXIS2-5191 > > Thanks ! > > > ETransactionsServiceV3 -| > META-INF -| > ETransactionsServiceV3.wsdl > services.xml > > > On 18/04/2012 10:57, Sagara Gunathunga wrote: >> Yes this is possible and there is no issue with it. >> >> Thanks ! >> >> On Wed, Apr 18, 2012 at 3:25 PM, Colm Brady >> > wrote: >> >> Dear Users, >> >> I have a axis2 service deployed. I would like SOAP clients >> and restful clients to consume the same service. Some SOAP >> clients only support WSDL 1.2. I need WSDL 2.0 for the >> RESTful clients (as per Axis2 docs). Ideally, I would like my >> "user defined" WSDL 1.2 and WSDL 2.0 to be avilable to the >> client, via ?wsdl and ?wsdl2. Is this possible? >> >> Also - Is this best practice? >> >> Regards >> >> Colm >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org >> >> For additional commands, e-mail: >> java-user-help@axis.apache.org >> >> >> >> >> >> -- >> Sagara Gunathunga >> >> Blog - http://ssagara.blogspot.com >> Web - http://people.apache.org/~sagara/ >> >> LinkedIn - http://www.linkedin.com/in/ssagara > > > > > -- > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://people.apache.org/~sagara/ > > LinkedIn - http://www.linkedin.com/in/ssagara --------------070504030604040804050204 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thank you.

On 18/04/2012 13:35, Sagara Gunathunga wrote:


On Wed, Apr 18, 2012 at 3:42 PM, Colm Brady <colm.brady@roamware.com> wrote:
Dear Sagara,

Many thanks for the response, however, if I use the "useOriginalwsdl = true" parameter how is it possible to expose both "User Defined" wsdls?

My services directory is exploded, and I have the WSDL 1.2 version exposed. How do I expose the WSDL 2.0 version?? Using "?wsdl2" parameter returns an Axis2 "generated" WSDL 2.0 file. I want to expose my custom WSDL 2.0 file.. Is this possible? How?

There is a open issue here[1] to enable "useOriginalwsdl" option for WSDL 2.0 and the issue will be fixed soon. BTW Axis2 expect to have a file called "ServiceName.wsdl" to pick up as the original WSDL regardless it's version hence it's not possible to have two files same time. I'm not sure feasibility to introduce new extension ( wsdl2 ?) to achieve this.

 [1] - https://issues.apache.org/jira/browse/AXIS2-5191

Thanks !
 

ETransactionsServiceV3 -|
        META-INF -|
                ETransactionsServiceV3.wsdl
                services.xml                                       


On 18/04/2012 10:57, Sagara Gunathunga wrote:
Yes this is possible and there is no issue with it.

Thanks !

On Wed, Apr 18, 2012 at 3:25 PM, Colm Brady <colm.brady@roamware.com> wrote:
Dear Users,

I have a axis2 service deployed. I would like SOAP clients and restful clients to consume the same service. Some SOAP clients only support WSDL 1.2. I need WSDL 2.0 for the RESTful clients (as per Axis2 docs). Ideally, I would like my "user defined" WSDL 1.2 and WSDL 2.0 to be avilable to the client, via ?wsdl and ?wsdl2. Is this possible?

Also - Is this best practice?

Regards

Colm



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org




--
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara



--
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara
--------------070504030604040804050204--