axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: [Axis2] Soap Encoding support with ADB
Date Fri, 04 Jan 2008 13:29:34 GMT
Here is the summary of this discussion.

ADB soap encoding support is to provide support for wsdls having soap
encoding schema types.

ADB supports only Single reference serialization and hence graphs with loops
can not be supported. But
multireference parsing is supported.

For a general schema with a soap:Array it generates a code with
soapencoding.Array element.

i.e for a schema like this.
<s:element name="TestSoapElement2">
>         <s:complexType>
>             <s:sequence>
>                 <s:element name="param1" type="s:string"/>
>                 <s:element name="param2" type="soapenc:Array"/>
>             </s:sequence>
>         </s:complexType>
>     </s:element>

here param2 type would be a soapencoding.Array.

But for this special type of schema pattern
i.e.

<s:element name="TestSoapElement2">
>         <s:complexType>
>             <s:sequence>
>                 <s:element name="param1" type="s:string"/>
>                 <s:element name="param2" type="tns:ArrayOfInt"/>
>             </s:sequence>
>         </s:complexType>
>     </s:element>

<xs:complexType name="ArrayOfInt">
    <xs:complexContent mixed="false">
    <xs:restriction base="q1:Array">
   <xs:attribute a:arrayType="xs:int[]" ref="q1:arrayType"/>
  </xs:restriction>
</xs:complexContent>
</xs:complexType>

it sets the param2 type as int[] (given type with a:arrayType attribute)

is this ok?

thanks,
Amila.


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message