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

  • Home
  • SEARCH
  • 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 8514091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:45:58+00:00 2026-06-11T04:45:58+00:00

Now i am consuming a dot net web service in android by the method

  • 0

Now i am consuming a dot net web service in android by the method SOAP.This is the exact web service which i am trying to consume.

“http://54.251.60.177/TMSOrdersService/TMSDetails.asmx” this web service is actually retreiving the data in the form of xml format

The input values for this web service are

FromDate : 01/01/2012

ToDate : 07/07/2012

After giving these input values into edittext boxes,when i am clicking the “invoke” button its showing the blank screen,i cannot find any thing on my logcat too..

Logcat

09-11 11:11:41.314: D/AndroidRuntime(442): Shutting down VM
09-11 11:11:41.323: D/dalvikvm(442): Debugger has detached; object registry had 1 entries
09-11 11:11:41.374: I/AndroidRuntime(442): NOTE: attach of thread 'Binder Thread #3' failed
09-11 11:11:41.844: D/AndroidRuntime(450): >>>>>>>>>>>>>> AndroidRuntime START      <<<<<<<<<<<<<<
09-11 11:11:41.844: D/AndroidRuntime(450): CheckJNI is ON
09-11 11:11:41.974: D/AndroidRuntime(450): --- registering native functions ---
09-11 11:11:42.034: I/jdwp(450): Ignoring second debugger -- accepting and dropping
09-11 11:11:42.524: I/ActivityManager(75): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.test_webservice/.Test_webservice }
09-11 11:11:42.584: D/AndroidRuntime(450): Shutting down VM
09-11 11:11:42.604: D/dalvikvm(450): Debugger has detached; object registry had 1 entries
09-11 11:11:42.714: I/AndroidRuntime(450): NOTE: attach of thread 'Binder Thread #3' failed
09-11 11:11:48.973: D/dalvikvm(178): GC_EXPLICIT freed 438 objects / 20576 bytes in 100ms

Suggestions please?

  • 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-11T04:46:00+00:00Added an answer on June 11, 2026 at 4:46 am

    I don’t know if you’re using ksoap2, but I wrote and tested this function and it works fine, I’m getting the values. Hope it helps:

    import org.ksoap2.SoapEnvelope;
    import org.ksoap2.serialization.SoapObject;
    import org.ksoap2.serialization.SoapSerializationEnvelope;
    import org.ksoap2.transport.HttpTransportSE;
    
    public void getTMSChart(String FromDate, String ToDate)
    {
        System.setProperty("http.keepAlive", "false");        
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);        
        envelope.dotNet = true;
        String namespace = "http://tempuri.org/";
        String url = "http://54.251.60.177/TMSOrdersService/TMSDetails.asmx";
        String method = "GetTMSChart";
    
        SoapObject request = new SoapObject(namespace, method);        
        request.addProperty("FromDate", FromDate);               
        request.addProperty("ToDate", ToDate);
    
        envelope.setOutputSoapObject(request);
        HttpTransportSE androidHttpTransport = new HttpTransportSE(url);
    
        try {
            androidHttpTransport.call(namespace + method, envelope);
            SoapObject result = (SoapObject) envelope.bodyIn;
            SoapObject root =  (SoapObject) ((SoapObject)(result).getProperty(0)).getProperty("NewDataSet");
            int tablesCount = root.getPropertyCount();
            for (int i = 0; i < tablesCount; i++)
            {
                SoapObject table = (SoapObject) root.getProperty(i);
                int propertyCount = table.getPropertyCount();
                for (int j = 0; j < propertyCount; j++)
                {           
                    String orderNo =  table.getPropertyAsString("Order_No");
                    int freightRate = Integer.parseInt(table.getPropertyAsString("Freight_Rate"));
                    int marginPercent = Integer.parseInt(table.getPropertyAsString("Margin_Percent"));
                    // whatever you do with these values
                }                   
            }
        }   
        catch (Exception e) {
    
        }   
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time consuming a SOAP web service in ASP.Net and I
Right now i am working with consuming web service from android by the method
Has any one me this issue,now i am consuming a web service by SOAP
Right now i am consuming a SOAP web service on android/eclipse.Well its working fine.Please
Right now i am consuming two webservices by the method SOAP on android.The way
i am self-leaner to android.Right now i am consuming web service in android eclipse
I general how to write a web method for the web service which is
I have made one application for consuming web service using SOAP protocol on iOS
Now I'm trying to display the result of consuming a webservice from one page
While consuming a web service in my application I have two choices(ref. msdn) Adding

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.