wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Error reading a bean with an attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Error reading a bean with an attribute "array of strings" from Axis WS" Watch "Error reading a bean with an attribute "array of strings" from Axis WS" New topic
Author

Error reading a bean with an attribute "array of strings" from Axis WS

Guadalupe Ortiz
Ranch Hand

Joined: Sep 12, 2003
Posts: 74
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.

Any suggestion is welcome.
Thanks lot!
 
 
subject: Error reading a bean with an attribute "array of strings" from Axis WS
 
Similar Threads
Passing an array back from Javabean to JSP
document/literal webservice axis complex-type:Attempted to write schema for bad QName
Problem with mapping Array String into HashMap in Axis
Axis 1.0 and ur-type arrayType encoding
Web Services in Java Vs C#