1. Axis
  2. AXIS-2454

Using Arrays results in malformed XML ([0,unbounded]) - Using Doc-Literal Wrapped


    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Labels:
    • Environment:
      Tomcat 5.5, Sun JDK 1.5.06 on Linux


      Axis 1.3 is encoding my Array-enabled messages with malformed/broken XML (example below). This problem has been reported before in slightly modified ways, but for the CastorSerializer (which I am not using). For more on that see bug #AXIS-2135 in this system.

      I am probably using standard serializers, as I'm just trying to return an unbounded array from the service. My service uses the Doc-Literal/Wrapped style. Returning an array results in the following type of return structure:

      <stuff ... />
      <stuff ... />

      (A full example is below.)

      The WSDL snippet that produces this is:

      <xsd:element name="getAlarmListResponse">
      <xsd:element ref="tns:alarm" maxOccurs="unbounded" minOccurs="0"></xsd:element>

      <xsd:element name="alarm" nillable="true">
      <xsd:element name="alarmTime" type="xsd:long" nillable="false"></xsd:element>
      <xsd:element name="latestEventTime" type="xsd:long" nillable="false"></xsd:element>
      <xsd:element name="lastUpdateTime" type="xsd:long" nillable="false"></xsd:element>

      Thanks for any help you can provide with this. We have a major production implementation that is stopped while we attempt to work around this issue.


      Here is a detailed example of the the SOAP response we are receiving from the Axis 1.3 server:

      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      Content-Type: text/xml;charset=utf-8
      Date: Thu, 30 Mar 2006 05:10:54 GMT
      Connection: close

      <?xml version="1.0" encoding="utf-8"?>
      <soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
      <getAlarmListResponse xmlns="">
      <alarmTime xmlns="">1142220126</alarmTime>
      <latestEventTime xmlns="">1142220265</latestEventTime>
      <lastUpdateTime xmlns="">1142220265</lastUpdateTime>
      <alarmTime xmlns="">1142220266</alarmTime>
      <latestEventTime xmlns="">1142220508</latestEventTime>
      <lastUpdateTime xmlns="">1142220508</lastUpdateTime>
      <alarmTime xmlns="">1142220901</alarmTime>
      <latestEventTime xmlns="">1142221208</latestEventTime>
      <lastUpdateTime xmlns="">1142221208</lastUpdateTime>

        21 kB
        Eric Schwarzenbach


        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12554767 ] jira [ 12577215 ]
        Mark Thomas made changes -
        Workflow jira [ 12352669 ] Default workflow, editable Closed status [ 12554767 ]
        Eric Schwarzenbach made changes -
        Field Original Value New Value
        Attachment [ 12324791 ]
        Greg Tassone created issue -


          • Assignee:
            Greg Tassone
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: