• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 642
  • 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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