This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Android and the fly likes Android and AXIS2 Messaging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android and AXIS2 Messaging" Watch "Android and AXIS2 Messaging" New topic

Android and AXIS2 Messaging

Xao Wu

Joined: May 03, 2012
Posts: 4
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.
Tim Moores

Joined: Sep 21, 2011
Posts: 2415
The only Android-compatible SOAP implementation I'm aware of is called kSOAP2 or something like that.
Raja Pal
Ranch Hand

Joined: Jul 12, 2004
Posts: 92
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.
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

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.

If you are stuck with SOAP, here is ksoap2 that Tim was talking about ->

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link:
subject: Android and AXIS2 Messaging
It's not a secret anymore!