axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Brunner ...@blumenstrasse.vol.at>
Subject Multidimensional arrays
Date Wed, 14 Aug 2002 16:32:55 GMT
Hello,

I get the following error when trying to call a function that returns 
multidimensional String arrays:
java.lang.ClassCastException:
org.apache.axis.encoding.ser.ArrayDeserializer$ArrayListExtension

##########################

Client function:
call.setOperationName("getIndexList");
Object[] args = new Object[] {str};
String arr[][] = (String[][]) call.invoke(args);

Service function:
String[][] getIndexList(String str);

SOAP response:

HTTP/1.1 200 OK 
Content-Type: text/xml; charset=utf-8 
Connection: close 
Date: Wed, 14 Aug 2002 16:23:29 GMT 
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector) 
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <getIndexListResponse 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
   <getIndexListReturn xsi:type="soapenc:Array" 
soapenc:arrayType="xsd:string[1,1]" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <item xsi:type="xsd:string">bla</item>
   </getIndexListReturn>
  </getIndexListResponse>
 </soapenv:Body>
</soapenv:Envelope>

##########################

The answer seems to be correct, it's a multidimensional string array with only 
one member: {{"bla"}}.
What is causing this ClassCastException?


Both client and server are using axis 1.0b3.
-- 
Matthias Brunner <mb@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc


Mime
View raw message