axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: Help with AXIS bug with complex type and maxOccurs
Date Thu, 15 Feb 2007 02:29:46 GMT
It's a bug. I don't think it's been fixed.

On 2/14/07, josh s <josh.s17@gmail.com> wrote:
> Hi,
>
> I'm a relative newbie to webservices. I'm attempting to do something fairly
> straight forward using AXIS 1.4 and AXIS appears to be doing the wrong thing
> to me.
>
> An extract of the WSDL which is used with axis-wsdl2java to generate java
> is below.
>
>            <xs:element name="Name" type="xs:string"/>
>             <xs:element name="NameValuePair">
>                 <xs:complexType>
>                     <xs:sequence>
>                         <xs:element ref="ns0:Name"/>
>                         <xs:element ref="ns0:Value"/>
>                     </xs:sequence>
>                 </xs:complexType>
>             </xs:element>
>             <xs:element name="NameValuePairs">
>                 <xs:complexType>
>                     <xs:sequence>
>                         <xs:element ref="ns0:NameValuePair" minOccurs="0"
> maxOccurs="8"/>
>                     </xs:sequence>
>                 </xs:complexType>
>             </xs:element>
>             <xs:element name="Value" type="xs:string"/>
>
> When I attempt to send a message using the generated code some of the XML
> generated by AXIS looks like the following which appears incorrect.
>
>             <NameValuePairs>
>                 <NameValuePairs>
>                     <Name>DRN</Name>
>                     <Value>11111111</Value>
>                 </NameValuePairs>
>             </NameValuePairs>
>
> If I do not specifiy maxOccurs in the WSDL then the XML that is produced is
> however correct
>
>             <NameValuePairs>
>                  <NameValuePair>
>                      <Name>DRN</Name>
>                      <Value>11111111</Value>
>                  </NameValuePair>
>              </NameValuePairs>
>
>  Is this is a bug in AXIS? Is there a workaround or do I need to specify my
> WSDL differently.
>
> I can send the entire WSDL if that helps. This has really got me stumped and
> any help would be greatly appreciated. Thanks for you help.
>
> Josh
>
>
>

---------------------------------------------------------------------
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