I am trying to make a web-service in java where you pass in a 2 dimensional array as a parameter. When I test it with the web-service explore I keep getting this error:
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: Found character data inside an array element while deserializing</faultstring>
- <detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">Name</ns1:hostname>
</detail>
</soapenv:Fault>
Any idea as to why?
You are best off wrappering your two-dimensional array inside of an object, and even then use something like ArrayList instead of an actual Array. It works better with web services with Java and your JAXB bindings.