Hi! I'm new to Android programming and I want to ask if it's possible to pass a list of java beans from an AXIS2 web service to an Android device. If so, how is this done? Any help would be appreciated.
If you are accessing the web service simply create a SOAPObject request and a SOAPEnvelope and then call the ServiceImplementation class with the name of the serivce operation. AXIS2 can be used to publish a service, any Android device can consume it if the WSDL URL and service class is known. For compatible types your java beans must not use complex data types that cannot be mapped to XSD types. So no util and collections interfaces, instead use arrays and objects.
Java Pal - Your friend in technology and innovation...India.
I would stay far away from SOAP and WSDLs when it comes to mobile devices. SOAP + XML involves some heavy lifting and inefficiencies. Do you have the opportunity to redefine your service as a REST service ? It is easier (from a developer and performance standpoint) for mobile clients to open a HTTP url connection and consume JSON / thrift than to rely on code-generated artifacts and parse XML.