axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith Ranabahu" <ajith.ranab...@gmail.com>
Subject Re: [axis2] Does axis2 support <any> or <choice>?
Date Fri, 23 Jun 2006 14:02:37 GMT
Hi,
Report two Jiras and link them together.

Ajith

On 6/23/06, Tim Oertel <tox@samasher.com> wrote:
> Ajith Ranabahu wrote, on or about 6/23/2006 9:25 AM:
> > Hi Tim,
> > Please log a Jira. This smells like a bug !
>
> Should this be written up as two bugs?  One for <all> support
> and one for <sequence> not respecting minOccurs/maxOccurs?
>
>
> > Ajith
> >
> > On 6/23/06, Tim Oertel <tox@samasher.com> wrote:
> >> Crud, I forgot to mention I was using the 1.0 release, but have
> >> since upgraded and re-tested against the 2006/06/22 nightly snapshot.
> >>
> >>
> >> Tim Oertel wrote, on or about 6/23/2006 9:20 AM:
> >>> I'm trying to set up a server with a service something like:
> >>>
> >>> <xs:element name="Update">
> >>>     <xs:complexType>
> >>>     <xs:all>
> >>>        <xs:element type="xs:anyType" name="id"   minOccurs="1" maxOccurs="1"/>
> >>>        <xs:element type="xs:anyType" name="arg0" minOccurs="0" maxOccurs="1"/>
> >>>        <xs:element type="xs:anyType" name="arg1" minOccurs="0" maxOccurs="1"/>
> >>>     </xs:all>
> >>>     </xs:complexType>
> >>> </xs:element>
> >>>
> >>> I'm invoking the service via REST via http://.../Update?id=123&arg0=test+01
> >>>
> >>> When my hand-written service is invoked, I do a toString on the OMElement
> >>> my service is invoked with.  It returns:
> >>> <axis2ns1:Update xmlns:axis2ns1="http://foo/xsd" />
> >>>
> >>> ... without any of my parameters.
> >>>
> >>> When I specify the collection as <xs:sequence> rather than <xs:all>,
invoke
> >>> it the same way, it returns:
> >>>
> >>> <axis2ns2:Update xmlns:axis2ns2="http://foo/xsd">
> >>>       <id>14723</id>
> >>>       <arg0>test 01</arg0>
> >>>       <arg1>tox</arg1>
> >>> </axis2ns2:Update>
> >>>
> >>> which is what I expect (both from this and from the <any> case above),
but
> >>> it doesn't seem to honor the "minOccurs" attribute in the wsdl.  Also, it
> >>> doesn't seem to care about ordering (which is fine with me, but seems
> >>> contrary to the WSDL spec).
> >>>
> >>> Am I probably (or definitely) doing something wrong, or are these bugs in
> >>> axis2?
> >>>
> >>> Thanks,
> >>> - Tim
>
>
> --
> Tim Oertel       |"Why should I be content to simply
> VP Engineering   | live in this world, when I, as a
> Ashergroup, Inc. | human being, can CREATE it?!"
> IM via jabber: toertel@jabber.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

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


Mime
View raw message