This week's book giveaway is in the Beginning Java forum. We're giving away four copies of Getting started with Java programming language and have Ashish Sarin & J Sharma on-line! See this thread for details.
Error reading a bean with an attribute "array of strings" from Axis WS
posted 8 years ago
Hi, I have created a web service , with Axis, which returns a bean with some attributes. Among all the attributes, one of them is an array of Strings. If a create a J2EE client, it works perfectly, but when I create a J2ME client I am not able to read the array from the bean. It seems that in the stub created the type of the array of Strings have changed into a new type (ArrayOf_xsd_string) and there seems to be a method to get the array of strings: getItem(). But if I use it I get o get the String from the ArrayOf_xsd_string, I get a null pointer exception.