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 8109647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:29:13+00:00 2026-06-06T01:29:13+00:00

Can any one tell me how to display a dataset value from the web

  • 0

Can any one tell me how to display a dataset value from the web service by consuming it from android eclipse?

I have tried these things so far

public class Demo_webserviceActivity extends Activity
{
/** Called when the activity is first created. */

   private static String NAMESPACE = "http://tempuri.org/";
   private static String METHOD_NAME = "GetName";
   private static String SOAP_ACTION = "http://tempuri.org/GetName";
   private static String URL = "http://122.248.240.105:234/Service1.asmx?WSDL";

   Button btnFar;
   EditText txtFar,txtCel;

   @Override
   public void onCreate(Bundle savedInstanceState)
   {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);

       btnFar = (Button)findViewById(R.id.btnFar);

       txtFar = (EditText)findViewById(R.id.txtFar);
       txtCel = (EditText)findViewById(R.id.txtCel);

       btnFar.setOnClickListener(new View.OnClickListener()
       {

                  public void onClick(View v)
              {
                    //Initialize soap request + add parameters
              SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);       

              //Use this to add parameters
              request.addProperty("Fahrenheit",txtFar.getText().toString());

              //Declare the version of the SOAP request
              SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);

              envelope.setOutputSoapObject(request);
              envelope.dotNet = true;

              try {
                    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

                    //this is the actual part that will call the webservice
                    androidHttpTransport.call(SOAP_ACTION, envelope);

                    // Get the SoapResult from the envelope body.
                    SoapObject result = (SoapObject)envelope.bodyIn;

                    if(result != null)
                    {
                          //Get the first property and change the label text
                          txtCel.setText(result.getProperty(0).toString());
                    }
                    else
                    {
                          Toast.makeText(getApplicationContext(), "No Response",Toast.LENGTH_LONG).show();
                    }
              } catch (Exception e) {
                    e.printStackTrace();
              }
              }
        });

web method

public class GetName 
{

public String GetName(String Fahrenheit){
    return(Fahrenheit);
}
}

Here is my log cat for reference

logcat

06-11 17:03:57.760: D/AndroidRuntime(283): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
06-11 17:03:57.760: D/AndroidRuntime(283): CheckJNI is ON
06-11 17:03:57.890: D/AndroidRuntime(283): --- registering native functions ---
06-11 17:03:58.520: D/AndroidRuntime(283): Shutting down VM
06-11 17:03:58.530: D/dalvikvm(283): Debugger has detached; object registry had 1  entries
06-11 17:03:58.580: I/AndroidRuntime(283): NOTE: attach of thread 'Binder Thread #3' failed
06-11 17:03:58.980: D/AndroidRuntime(291): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
06-11 17:03:58.980: D/AndroidRuntime(291): CheckJNI is ON
06-11 17:03:59.150: D/AndroidRuntime(291): --- registering native functions ---
06-11 17:03:59.750: I/ActivityManager(58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.demo.webser/.Demo_webserviceActivity }
06-11 17:03:59.820: D/AndroidRuntime(291): Shutting down VM
06-11 17:03:59.820: D/dalvikvm(291): Debugger has detached; object registry had 1 entries
06-11 17:03:59.865: I/AndroidRuntime(291): NOTE: attach of thread 'Binder Thread #3' failed
06-11 17:04:00.560: I/ActivityManager(58): Displayed activity com.demo.webser/.Demo_webserviceActivity: 780 ms (total 780 ms)
06-11 17:04:05.930: D/dalvikvm(115): GC_EXPLICIT freed 2114 objects / 95232 bytes in 117ms
  • 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-06T01:29:14+00:00Added an answer on June 6, 2026 at 1:29 am

    I considered you are developing web service in java.
    No there is no data type as data set in java but if you want you can return response as array of String.It mean get response(table) in 2D array of string and return that response.

    And for your reference for creating webservice in java use this Tutorial How to create java based web service.

    If you have any doubts regarding this or any other doubts you can write me.

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

Sidebar

Related Questions

Can any one tell me how to retrieve image from RSS feed and display
Can any one please tell me how can I display a count of the
Firebug, from what I can tell, uses one element to display its console. Somehow,
Can any one please tell me is it possible to display pie chart in
Can anyone tell me how to get and display the biggest values from a
Can any one tell me if its possible to create a stored procedure in
Can any one tell me how can i replace the slideup function with fadeout('slow')
Can any one tell me how to solve the following scenario in Asp.net application.
Can any one tell how to disable focus to a browser. Hi i am
Can any one tell me how to create the rounded button (Circular Button) in

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.