aspose file tools*
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
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android and AXIS2 Messaging" Watch "Android and AXIS2 Messaging" New topic
Author

Android and AXIS2 Messaging

Xao Wu
Greenhorn

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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

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 -> http://code.google.com/p/ksoap2-android/


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Android and AXIS2 Messaging