Error in SOAP message when using  2D-Arrays
-------------------------------------------

         Key: AXIS-2341
         URL: http://issues.apache.org/jira/browse/AXIS-2341
     Project: Apache Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.3    
 Environment: Windows Server 2003, Java 1.5.0_02
    Reporter: Stian Lassemo


I have generated client files from WSDL using Axis 1.3.

One of the WebService Methods require a 2D-Array as input. Like this:
        LocalizedFieldCarrier[][] adr = new LocalizedFieldCarrier[3][2];
        adr[0][0] = new LocalizedFieldCarrier("StreetAddress1", "", "", 
"SR_AL_STREET", 42);
        adr[1][0] = new LocalizedFieldCarrier("PostalAddress1", "P.O.Box 1265", 
"", "SR_AL_POSTAL", 42);
        adr[2][0] = new LocalizedFieldCarrier("PostalZipcode", "1234", "", 
"SR_AL_POSTCODECITY", 10);
        adr[3][0] = new LocalizedFieldCarrier("PostalCity", "City", "", "", 30);

This generates the following SOAP message element:
<Address>
        <ArrayOfLocalizedFieldCarrier>
                <ArrayOfLocalizedFieldCarrier>
                        <Name>StreetAddress1</Name>
                        <Value/>
                        <Tooltip/>
                        <Label>SR_AL_STREET</Label>
                        <ValueLength>42</ValueLength>
                </ArrayOfLocalizedFieldCarrier>
        </ArrayOfLocalizedFieldCarrier>
        <ArrayOfLocalizedFieldCarrier>
                <LocalizedFieldCarrier>
                        <Name>PostalAddress1</Name>
                        <Value>P.O.Box 1265</Value>
                        <Tooltip/>
                        <Label>SR_AL_POSTAL</Label>
                        <ValueLength>42</ValueLength>
                </LocalizedFieldCarrier>
        </ArrayOfLocalizedFieldCarrier>
        <ArrayOfLocalizedFieldCarrier>
                <LocalizedFieldCarrier>
                        <Name>PostalZipcode</Name>
                        <Value>1234</Value>
                        <Tooltip/>
                        <Label>SR_AL_POSTCODECITY</Label>
                        <ValueLength>10</ValueLength>
                </LocalizedFieldCarrier>
        </ArrayOfLocalizedFieldCarrier>
        <ArrayOfLocalizedFieldCarrier>
                <LocalizedFieldCarrier>
                        <Name>PostalCity</Name>
                        <Value>City</Value>
                        <Tooltip/>
                        <Label/>
                        <ValueLength>30</ValueLength>
                </LocalizedFieldCarrier>
        </ArrayOfLocalizedFieldCarrier>
</Address>

The first address element differ from the rest, it seems like the first element 
uses the name of it's parent, ArrayOfLocalizedFieldCarrier. The next elements 
uses the correct element name, LocalizedFieldCarrier.
This generates an error when contacting the service.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to