Blog?
Blog Posts
-
Comment: Version 0.0.5 released
created by
May 01, 2012
-
Comment: Version 0.0.4 released
created by
Apr 16, 2012
What?
The AndroidSOAP is "yet another" SOAP client for Android platform, it is compatible with 1.5+ versions and uses Reflection API.
But... this is only a proof-of-concept library, I've tested it with JBoss WebService stack, see and/or try the example. |
Why?
Using AndroidSOAP is a very easy way to call a SOAP service, because it is based on JAX-WS interfaces. You can use all interfaces that the 'wsimport' generates from the WSDL. Short example:
How?
Can you see? The lists are lists, the classes are classes, the values are in the properties, just like in the JAX-WX client... ![]()
If any field has XmlElement annotation in the generated source, you need add jaxb into your Android project, like this: And add coreLibrary into the configuration of the android-maven-plugin: |
Where?
Source: http://svn.javaforum.hu/svn/android/AndroidSOAP/trunk/
Wiki: http://wiki.javaforum.hu/display/ANDROIDSOAP/Home
Issues: http://traq.javaforum.hu/browse/ANDROIDSOAP
Example apk: http://nexus.javaforum.hu/nexus/content/repositories/releases/hu/javaforum/android/androidsoap/AndroidSOAP-example/0.0.5/AndroidSOAP-example-0.0.5.apk
Tutorial?
Step by step tutorial with Maven3 project: Step by Step Tutorial
Patches and feature requests?
If you have a patch, don't hesitate, send me as fast you can... ![]()
If you need a feature, create an issue... ![]()
If I'm not using Maven?
The entire project (with dependencies) managed by Maven3, if you aren't using Maven3, you need some jars to add your project's CLASSPATH:
- slf4j-android-1.6.1-RC1.jar or above
- commons-codec-1.3.jar exactly
- javaforum20-commons-1.0.2.jar or above
- AndroidSOAP-lib-0.0.5.jar or above
- validation-api-1.1.0.Alpha1.jar exactly
Example screenshot

| Your Rating: |
![]() ![]() ![]() ![]()
|
Results: |
![]() ![]() ![]() ![]()
|
2 | rates |


28 Comments
Hide/Show CommentsOct 22, 2010
Anonymous
Interesting project. I tried to make it work here, but bumped into issues with javax.xml.bind package. I noticed that these imports are present in your source code generated by wsimport as well. How do you get this to compile and run on Android without adding a library like JAXB? Thanks.
Oct 22, 2010
Auth Gábor
Hi,
The javax.xml.bind.* classes are annotations... and some other classes (*Bean, *BeanService, ObjectFactory and etc.) are not used in the Android side of the projects, so the JAXB is not neccessary...
Nov 01, 2010
Tim
I'm also interested in your project. Which jar files need adding to the android project in order to get it to build in Eclipse? Where can I get them? Thanks
Nov 01, 2010
Auth Gábor
The project can build with Maven, so you can build it with a Maven plugin for Eclipse: m2eclipse or Eclipse IAM.
You can checkout the entire project from the http://svn.javaforum.hu/svn/android/AndroidSOAP/trunk/AndroidSOAP/ address, and you can build it instantly.
Jan 04, 2011
Chris Wolf
You want to generate beans without any xml databinding code baked in, so don't use JAXB (xjc) or wsimport to generate your beans. Try using the wsdl2java utility from the Apache Axis project:
http://ws.apache.org/axis/index.html
...then use this script:
http://code.activestate.com/recipes/577533-axis-pojo-stripper/
to post-process the Axis beans to generate plain beans (POJOs without marshal/unmarshalling code)
Nov 21, 2010
Anonymous
Sounds interessting, but could you provide an example how to use the autogenerated files from wsimport.
Dec 09, 2010
Anonymous
Hi! Jo here!
How do I use your library in Eclipse? How do I compile your example?
I have installed m2eclipse and checked out the source from svn (http://svn.javaforum.hu/svn/android/AndroidSOAP/trunk/AndroidSOAP/), but Eclipse doesn't detect any projects.
I want to use your library for a project at university.
Thanks in advance!
Jo from Germany
Jan 02, 2011
Auth Gábor
Hm... the Maven project is very simple: the pom.xml holds all neccessary data... so the Eclipse must be open it, if the plugin works...
Dec 09, 2010
Anonymous
Jo again:
For your information: Of course I have installed the Android Plugin for Eclipse too. And I created projects for Android.
Greetings from Germany!
Feb 15, 2011
Anonymous
Hi! Luke from Italy here.
This library sounds really interesting, so I have installed Eclipse IAM and checked out the source from svn.
But I can't understand how to make it work... I believed that the source code contained a running example of an Android app using the library, but I can't find it.
Forgive me if this is a silly question since I'm totally new both to maven and to Android development!
Could you share your knowledge about how to setup an Android project that makes use of the AndroidSOAP library?
Thanks in advance.
Jan 02, 2011
Chris Wolf
This is a great library. I found it to be more usable then ksoap2. However... I had to patch it to deal with certain idiosyncrasies of document-literal/wrapped as well as certain web services that require a "SOAPAction" http header. If you're interested in these patches, let me know.
Jan 02, 2011
Auth Gábor
Thank you for your feedback, send me the patches.
Jan 04, 2011
Chris Wolf
patches sent to the email address in your profile. Additional changes handle primitive types other then String also object array fields. There are still issues, as mentioned in my email.
May 04, 2011
Anonymous
Netbeans from version 6.7 amd up, can upen/compile Maven projects too.
May 04, 2011
ferpeter
Hi, i tried to build the library i got:
The POM for extreme_xpp3:xpp3:jar:1.1.3.4.D is missing, no dependency information available
Failed to execute goal on project AndroidSOAP-lib: Could not resolve dependencies for project hu.javaforum.android.androidsoap:AndroidSOAP-lib:jar:0.0.4-SNAPSHOT: Could not find artifact extreme_xpp3:xpp3:jar:1.1.3.4.D in javaforum (http://nexus.javaforum.hu/nexus/content/repositories/public/)
i need a little help. Thanks.
May 05, 2011
Auth Gábor
Which Maven version exactly? Can you try it from command line?
May 05, 2011
ferpeter
Problem solved. I download the http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-1.1.3.4.D_all.tgz manually. extracted to netbeans/java/maven/lib restart build. no success..
i right clicked on the runtime dependencies/xpp3-1.1.3.4.D.jar and selected: manually install artefact. file choosen, build restarted-> fine. it works. Problem solved..:)
Jun 29, 2011
Francesco
Hello!
I'm very interested in your project!
Can't you please provide a compiled jar, I've had several troubles trying to create it. Now that I've made it, I still don't know how to use it in my project. Importing it in the project does not solve the import requirements of my wsimport-ed classes.
I appreciate your help!
Fra.
Jun 30, 2011
Francesco
Nothing yet, I've managed to create the class files, but when I import them into my Android project, it still gives me the error:
The type javax.xml.bind.annotation.XmlNsForm cannot be resolved. It is indirectly referenced from required .class files
How can I solve this problem?
Jun 30, 2011
Auth Gábor
Hm... I think, your Eclipse is too intelligent... the javax.xml.bind.annotation.* isn't exists on Android platform, but it not necessary to run the project on Android. I don't use Eclipse, I'm using NetBeans and pure Maven, so I can't help you...
Jun 30, 2011
Francesco
Why is it not necessary? It says that some of the classes (the .class files generated) I imported require that library in order to work. I'm confused. :-|
Jun 30, 2011
Auth Gábor
The javax.xml.bind.annotation.* annotations are generated by JAX-WS, but the AndroidSOAP is not use these annotations. If you build the example project with Maven, you can see it.
Jul 01, 2011
Francesco
okay, but don't I have to import in my project the classes wsimported with maven? and don't they include those refrrences?
thank you!
By the way, the .pom files do not have the versions of the used plugins, so Maven 3.0 gives some warning.
Once I fixed that, Eclipse is continuing to give me errors when I import the project, such as:
No marketplace entries found to handle jaxws-maven-plugin:1.10:wsimport in Eclipse. Please see Help for more information.
No marketplace entries found to handle maven-android-plugin:2.5.2:dex in Eclipse. Please see Help for more information.
No marketplace entries found to handle maven-android-plugin:2.5.2:generate-sources in Eclipse. Please see Help for more information.
Oct 22, 2011
Francesco
In the end, I haven't been able to use AndroidSOAP.
Jan 20, 2012
Anonymous
Hello, I tried the apk and nothing happend. I can see 2 buttons on the ui but clicking them does not "as far as i can see" trigger anything. I am missing something? Thank you.
Feb 22, 2012
Anonymous
Great library, finaly something tiny and easy to use. I had to patch it a bit to make it working with enum types and to parse and throw custom SOAP exceptions, however it is working fine now. Thank you.
Feb 22, 2012
Auth Gábor
Thank you...
Could you send me your patch? I will merge it into the next version.
Mar 27, 2012
Anonymous
Patches sent to the email address in your profile.
Add Comment