Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8087219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:42:16+00:00 2026-06-05T18:42:16+00:00

I am trying to use a .NET service in Android Application using the ksoap2

  • 0

I am trying to use a .NET service in Android Application using the ksoap2 library.
I added the reference to the jar of ksoap2-android-assembly-2.6.5-jar-with-dependencies in my project.
But when I run the code I get a runtime exception saying

java.lang.NoClassDefFound : org.ksoap2.serialization.SoapObject.

Can anyone please help ?
This is my code.

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
    SoapSerializationEnvelope envelope = 
        new SoapSerializationEnvelope(SoapEnvelope.VER11); 
    envelope.dotNet = true;
    envelope.setOutputSoapObject(request);


    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

    try {
        androidHttpTransport.call(SOAP_ACTION, envelope);
        SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;
        tvTemp.setText("Received :" + resultsRequestSOAP.toString());
    } catch (Exception e) {
        e.printStackTrace();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:42:18+00:00Added an answer on June 5, 2026 at 6:42 pm

    I solved the problem using the link provided by the first commentator on the question. I am leaving the answer here just in case another programmer faces the same problem and comes across my question.

    The solution to this problem is to create a folder named “libs” in the project directory and copying all the external jar files there.

    For further explanation, one can refer to this link.
    http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use impersonation with my WCF service (using net.tcp binding) hosted in
I am trying to use a .NET webservice in my application where the service
I'm trying to use .NET HttpListener in a C# project. When I register my
I am trying to use Spring.NET with a C# application to populate a parameter
So I've been trying to use the Net::SSH::Multi to login to multiple machines using
I am trying to use a web service built on asp.net wcf from iPhone
I'm trying to use a Web Service using PHP and SOAP. The Web Service
I'm trying to consume a .Net Web Service using perl and SOAP Lite. When
I am trying to use sample FedEx Web Service code written in VB.NET to
I am trying to connect to an ASP.net soap service using Kerberos authentication using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.