• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 637
  • Last Modified:

serializing array objects with apache axis


When serializing array objects with apache axis, i have encountered two different xml fragment in generated soap messages.xml tags of first message generated like bigdecimal and its arrayType like bigdecimal[], although i want it to be like in second example.

I copied both sample xml below. As far as i checked definitions of both services are alike, can you please tell me what property make this difference ?

Thank you.

xml 1:

<FIELDNAME soapenc:arrayType="xsd:bigdecimal[2]"
xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<bigdecimal xsi:type="xsd:decimal">2135.09</bigdecimal>
<bigdecimal xsi:type="xsd:decimal">2087.09</bigdecimal>


<FIELDNAME soapenc:arrayType="soapenc:decimal[2]" xsi:type="soapenc:Array">
<FIELDNAME xsi:type="soapenc:decimal">15000</FIELDNAME>
<FIELDNAME xsi:type="soapenc:decimal">2000</FIELDNAME>
1 Solution
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Are you sure the definitions are same? if yes then please check the axis version you used to generated the java classes from the WSDL.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now