DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18390>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18390

Axis reject array element without xsi:type="soapenc:Array" 

           Summary: Axis reject array element without
                    xsi:type="soapenc:Array"
           Product: Axis
           Version: 1.1rc2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a SOAP client which is passing an array as:

<molNames soapenc:arrayType="xsd:string[1]">
<xsd:string xsi:type="xsd:string">GW671055X</xsd:string>
</molNames>

AXIS (1.0 and latest 1.1 rc2) is not happy with this and returns:

  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 
child element, which is NOT expected, in something it was 
trying to deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>

If I change the request and manually re-submit using:

<molNames xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]">
<xsd:string xsi:type="xsd:string">GW671055X</xsd:string>
</molNames>

evrything is OK.

Reply via email to