serializing array objects with apache axis

Posted on 2011-05-09
Last Modified: 2013-12-15

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="">
<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>
Question by:Ibtech2011
    1 Comment
    LVL 23

    Accepted Solution

    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

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now