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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:15:10+00:00 2026-06-01T01:15:10+00:00

import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; import org.ksoap2.transport.HttpTransportSE; public class

  • 0
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import org.ksoap2.transport.HttpTransportSE;



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

    String SOAP_ACTION="http://tempuri.org/HelloWorld";
    String METHOD_NAME = "HelloWorld";
    private static final String  SumsoapAction = "http://tempuri.org/add";
    private static final String  methodName = "add";
    private static final String UrlNamespace = "http://tempuri.org/";
    private static final String URL = "http://10.10.206.105/Webservicetest/service.asmx";


    TextView tv1;
    EditText Ed1;
    EditText Ed2;@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        tv1 = (TextView)findViewById(R.id.Result);
        Ed1 = (EditText)findViewById(R.id.firstValue);
        Ed2 = (EditText)findViewById(R.id.SecondValue);

        SoapObject sum_request = new SoapObject(UrlNamespace, methodName);
        Log.d("sum_request", sum_request.toString());
        //PropertyInfo pro1 = new PropertyInfo();
        String strA = Ed1.getText().toString();
        String strB = Ed2.getText().toString();
        sum_request.addProperty("a", strA);
        sum_request.addProperty("b", strB);
        Log.d("sum_request", sum_request.toString());
        SoapSerializationEnvelope sum_envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        Log.d("sum_envelope", sum_envelope.toString());
        sum_envelope.dotNet = true;        
    }
  • 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-01T01:15:11+00:00Added an answer on June 1, 2026 at 1:15 am

    Hey ur missing the following code:-

     try
          {
              sum_aht.call(SUM_SOAP_ACTION, sum_envelope);
              SoapPrimitive sum_results = (SoapPrimitive)sum_envelope.getResponse();
              Log.d("sum_result", sum_results.toString());
          //  int in = Integer.parseInt(sum_results.getProperty(0).toString());
              tv3.setText(""+sum_results.toString());
          }
           catch (Exception e)
             {
                  tv3.setText(e.getClass().toString());
                  Log.d("sum_error", e.getClass().toString());
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

package com.android.project; import android.app.Activity; import android.os.Bundle; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE;
Here is my code import org.ksoap2.*; import org.ksoap2.serialization.*; import org.ksoap2.transport.*; import android.app.Activity; import android.os.Bundle;
import org.jsoup.Jsoup; @SuppressWarnings({ unused, serial }) public class SimpleWebCrawler extends JFrame implements ActionListener {
I have the following code: trait A { import org.somepackage.C._ } class B extends
I write the following class: import org.apache.commons.jexl2.*; public class NelderMead { // контсанты private
I'm running the following code: import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.ResourcesPlugin; public class WorkspaceTest { public
Given the following code in Eclipse: import org.eclipse.jdt.core.dom.AST; import org.eclipse.jdt.core.dom.ASTParser; import org.eclipse.jdt.core.dom.CompilationUnit; public class
I have this code: package org.optimization.geneticAlgorithm; import org.optimization.geneticAlgorithm.selection.Pair; public abstract class Chromosome implements Comparable<Chromosome>
package org.apache.wicket.examples.guestbook; import java.util.Date; import org.apache.wicket.IClusterable; public class Comment implements IClusterable { private String
I have the following class: import org.apache.commons.beanutils.BeanUtils; import com.thoughtworks.xstream.XStream; ... public class MyBean {

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.