Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 98106 invoked from network); 28 May 2008 14:50:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 May 2008 14:50:50 -0000 Received: (qmail 72496 invoked by uid 500); 28 May 2008 14:50:43 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 72480 invoked by uid 500); 28 May 2008 14:50:43 -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 72469 invoked by uid 99); 28 May 2008 14:50:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 07:50:43 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of keithgchapman@gmail.com designates 64.233.170.191 as permitted sender) Received: from [64.233.170.191] (HELO rn-out-0910.google.com) (64.233.170.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 14:49:52 +0000 Received: by rn-out-0910.google.com with SMTP id j67so1763269rne.14 for ; Wed, 28 May 2008 07:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=9MjokhX6fhTRtYe53hvbeNm8bymWIqggV35yY882E5o=; b=U0PAbs+nXvz2DIaHq0bZXWxtoI8DRMyW3g1Yk3gUcZsD1m85t3m7PlbcFZtBrMIT2sXi1qnvpIw0paH2eNYyi9yp8Tvq9lOiC4SScCS8WjIqZdRrJWomxQJ6FSCgJ1T2I7P1Vw61r5cHdV0fCS2DzpLxI5nmLiyE9nHDftKsh1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=vG7oL4bNFelzDggPHZ1jWPtNbTvbvdds/J23IsByoGFb2v77Bls6LmQD9vnXWFi5M+mumj5LaZRTGKtoQCTWyzjciblMpetyk6sFtqAd8SFNN9mdKOssZfy5tN/VIq/OQMV94rTsj8yAJ+ejnZcpr3C/AqwErw7ej2uwwVyT5c0= Received: by 10.115.32.8 with SMTP id k8mr2704582waj.89.1211986191159; Wed, 28 May 2008 07:49:51 -0700 (PDT) Received: by 10.70.51.17 with HTTP; Wed, 28 May 2008 07:49:50 -0700 (PDT) Message-ID: Date: Wed, 28 May 2008 20:19:50 +0530 From: "keith chapman" To: axis-user@ws.apache.org Subject: Re: pushing REST support in axis2 a little beyond sanity ? In-Reply-To: <20080528081152.GA5126@pxavi.ambarinformatica.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17052_9655620.1211986191107" References: <48310.88.18.126.248.1210415664.squirrel@correu.clarcat.com> <20080528081152.GA5126@pxavi.ambarinformatica.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_17052_9655620.1211986191107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, See my comments inline, On Wed, May 28, 2008 at 1:41 PM, Xavier Drudis Ferran < xdrudis@ambarinformatica.com> wrote: > On Mon, May 26, 2008 at 04:50:46AM +0530, keith chapman wrote: > > Hi, > > > > Sorry for the late reply on this. (I saw this mail on the list a couple > of > > weeks ago while I was traveling on some urgent matters, I kept the mail > > marked so that I can have a look at it later). > > > > Thanks for replying. > > > On the issue of returning a POX error ( > > https://issues.apache.org/jira/browse/AXIS2-3771). I recall fixing this > POST > > 1.3, hence can you try this scenario out using Axis2 1.4? > > > > I'll try when I can allocate a little time to it (now I was moved to other > tasks). I hope this does not change requirements too much, it's an > old web app that requires some old stuff, and changing versions of > libraries sometimes is a bit of a headache. I didn't see your reply > to the bug, although I thought I was watching the bug. I could point you to the commit that fixed this issue. But then you will have to apply that patch against the version you are running to get it working. > > > > BTW Axis2 does support all four HTTP methods GET, PUT, POST and DELETE > hence > > it has full fledged REST support. > > > > Ok. I didn't mean to talk about whether Axis2 supports full REST but > about the fact that my simple example, just a GET for accessing remote > data without any other functionality, possibly does not allow to > distinguish POX from REST. You mean distinguish weather the response was POX or REST? I didn't really get what you mean here. > > > > Also you seem to use WSDL first deployment and I think you might be using > > WSDL 1.1. If you try using WSDL 2.0 (Which is much simpler that WSDL 1.1) > > you can get better control over the REST support in Axis2, and if you are > > interested in giving a try I can help you on this. > > > > Oops, I didn't even realise what version of WSDL I'm using. I guess > it's 1.1, yes . It's auto generated from that xslt I adapted, and the > topmost element is > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > name="getRequestList" > targetNamespace=""> > ... > Yes this is a WSDL 1.1 doc. You can tell it by looking at the parent tag > and the namespace of course. > > > I'll read a bit about WSDL versions, thanks for the hint. > > But do you think WSDL 2.0 allows me to define a webservice that > can get an XML with an element containing an arbitrary number of > unknown subelements in any order, as long as some subset > of known subelements is present, > and also in any order ? I still haven't found a way to declare > that with XSD (other than disabling validation for the enclosing > element, and therefore having to detect absence of the compulsory > elements by Java code, outside XSD). WSDL 2.0 is designed to use any type system, But at the moment its only XSD that we support. So using WSDL 2.0 will not give you any advantage in describing the schema. I didn't really understand your requirement here again. But if you want the elements to be in any order you can use instead of inside the complexType. May be i can give you a better answer if you can explain this a bit more. Thanks, Keith. > > > Thank you very much, and sorry to make you wait for a better answer. > > -- > Xavi Drudis Ferran > xdrudis@ambarinformatica.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org ------=_Part_17052_9655620.1211986191107 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

See my comments inline,

On Wed, May 28, 2008 at 1:41 PM, Xavier Drudis Ferran <xdrudis@ambarinformatica.com> wrote:
On Mon, May 26, 2008 at 04:50:46AM +0530, keith chapman wrote:
> Hi,
>
> Sorry for the late reply on this. (I saw this mail on the list a couple of
> weeks ago while I was traveling on some urgent matters, I kept the mail
> marked so that I can have a look at it later).
>

Thanks for replying.

> On the issue of returning a POX error (
> https://issues.apache.org/jira/browse/AXIS2-3771). I recall fixing this POST
> 1.3, hence can you try this scenario out using Axis2 1.4?
>

I'll try  when I can allocate a little time to it (now I was moved to other
tasks). I hope this does not change requirements too much, it's an
old web app that requires some old stuff, and changing versions of
libraries sometimes is a bit of a headache. I didn't see your reply
to the bug, although I thought I was watching the bug.

I could point you to the commit that fixed this issue. But then  you will have to apply that patch against the version you are running to get it working.


> BTW Axis2 does support all four HTTP methods GET, PUT, POST and DELETE hence
> it has full fledged REST support.
>

Ok. I didn't mean to talk about whether Axis2 supports full REST but
about the fact that my simple example, just a GET for accessing remote
data without any other functionality, possibly does not allow to
distinguish POX from REST.

You mean distinguish weather the response was POX or  REST? I didn't really get what you mean here.


> Also you seem to use WSDL first deployment and I think you might be using
> WSDL 1.1. If you try using WSDL 2.0 (Which is much simpler that WSDL 1.1)
> you can get better control over the REST support in Axis2, and if you are
> interested in giving a try I can help you on this.
>

Oops, I didn't even realise what version of WSDL I'm using. I guess
it's 1.1, yes . It's auto generated from that xslt I adapted, and the
topmost element is

<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
                 name="getRequestList"
                 targetNamespace="">
 ...
Yes this is a WSDL 1.1 doc. You can tell it by looking at the parent tag and the namespace of course.


I'll read a bit about WSDL versions, thanks for the hint.

But do you think WSDL 2.0 allows me to define a webservice that
can get an XML with an element containing an arbitrary number of
unknown subelements in any order, as long as some subset
of known subelements is present,
and also in any order ? I still haven't found a way to declare
that with XSD (other than disabling validation for the enclosing
element, and therefore having to detect absence of the compulsory
elements by Java code, outside XSD).

WSDL 2.0 is designed to use any type system, But at the moment its only XSD that we support. So using WSDL 2.0 will not give you any advantage in describing the schema.
I didn't really understand your requirement here again. But if you want the elements to be in any order you can use <all> instead of <sequence> inside the complexType. May be i can give you a better answer if you can explain this a bit more.

Thanks,
Keith.


Thank you very much, and sorry to make you wait for a better answer.

--
Xavi Drudis Ferran
xdrudis@ambarinformatica.com

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




--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org ------=_Part_17052_9655620.1211986191107--