|
HowToUse
Find out how to use this library in your Android application
How to UseApache MavenTo make use of this library in a Maven project, add the following to your project's POM: <project>
...
<repositories>
<repository>
<id>googlecode-ksoap2-android</id>
<name>googlecode-ksoap2-android</name>
<url>http://ksoap2-android.googlecode.com/svn/m2-repo</url>
</repository>
</repositories>
...
<dependencies>
<dependency>
<groupId>com.google.code.ksoap2-android</groupId>
<artifactId>ksoap2-android</artifactId>
<version>2.6.4</version>
</dependency>
</dependencies>
...
</project>or use a repository manager to add the repository there and just add the dependency. Contact simpligility technologies for consulting and training for Sonatype Nexus. Standard Android Ant-based build and Eclipse/ADTTo make use of this library in a non-Maven project, follow the instructions in the Android Developer's Guide on how to Add an External Library to your project. You will need to add a ksoap2-android and all required transitive dependencies to the build path. Luckily the Maven build of the project produces a nice bundle of all these jars in one big file. The different version of these files are available at http://code.google.com/p/ksoap2-android/source/browse/#svn/m2-repo/com/google/code/ksoap2-android/ksoap2-android-assembly/ To download a file from there, right click on "View raw file" and select "Save Link as" (this label differs for different browsers) and you will get the full jar downloaded. The latest release artifact would be available at with a direct download url of Some users seem to experience download problems with IE. Just try a decent browser or download with a command line tool like wget wget http://ksoap2-android.googlecode.com/svn/m2-repo/com/google/code/ksoap2-android/ksoap2-android-assembly/2.6.4/ksoap2-android-assembly-2.6.4-jar-with-dependencies.jar After the manual download confirm the size of the downloaded file since many users seem to be experiencing problems. Or better just use Maven and a repository server. MoreAnd in terms of how to write your code please look at the help wiki page. | |
nice :)
great
I'd like it,thanks
It is all in the m2-repo folders. Follow the instructions above for download.
In Addition to the above comment after adding the reference the following error is given : "Conversion to Dalvik format failed with error 1" - Removing the library and cleaning the project does not fix this problem instead I have to delete the project and start again.
Problem fixed, for anyone else getting this make sure to read this line carefully :
To download a file from there, right click on "View raw file" and select "Save Link as" (this label differs for different browsers) and you will get the full jar downloaded.
Download th file any other way and you will get the "Conversion to Dalvik format failed with error 1" error.
Hi, do you have documentation regarding how to access secured .NET webservice that require user name & password ?
Thanks Samuel
There is some documentation on the wiki and in the linked blog posts. Also some more on stackoverflow.
It works just fine if you actually read and follow the instruction on this page further up. Worst case get it with wget as documented.
Dear Authors,
Excuse me. When I add the ksoap2 2.6.3 jar into the 3rd party lib in our new android project in eclipse, a compelixity problem occur when the program run in emu as I declare the SoapObject? in anywhere in my project even I write "SoapObject? request = new SoapObject?(NAMESPACE, METHOD_NAME);" in the first line in onCreate function. The error message contain Ksoap2wcfActivity?.onCreate(Bundle) line: 62 Instrumentation.callActivityOnCreate(Activity, Bundle) line: 1047..... ActivityThread?.performLaunchActivity(ActivityThread?$ActivityClientRecord?, Intent) line: 1611 and so on
I am so preciate athour's contribution
Ask on the mailinglist with more details
最近刚好开发android,听说这个用在android上不错