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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:57:11+00:00 2026-06-04T21:57:11+00:00

Good evening, I need your help. Until now, using my webservice to withdraw data,

  • 0

Good evening,

I need your help.

Until now, using my webservice to withdraw data, there was no problem.
Even to receive the data, I have to send some. Example: Login.

However, now I want to send data to the webservice, and it will only return “true or false”.

I know I have the necessary data, but does not do what is supposed to do.
That is, the method I am invoking, it needs to receive data, and with these data it does the update in the database.
I know which works manually, directly on webservice.

what might be wrong?

Below is the code:

After insert the data on the app on android, when i click on a button, do this:

The message on the end, is the way that i know that i send real data:

try
{
    newpassword = newPass;
    Abreviatura = (EditText)findViewById(R.id.txtAbreviatura);
    newabreviatura = Abreviatura.getText().toString();

    Nome = (EditText)findViewById(R.id.txtNome);
    newnome = Nome.getText().toString();

    User = (EditText)findViewById(R.id.txtUsername);
    newusername = User.getText().toString();

    rslt="START"; 
    Caller c=new Caller(); c.newNome = newnome;
    c.newUser = newusername; c.newPass = newpassword;
    c.newAbrev = newabreviatura; c.oldusername = oldusername;
    c.ad=ad;
    c.join(); c.start();

    while(rslt=="START") {
        try {
            Thread.sleep(10); 
        }catch(Exception ex) {
        }
    }

    ad.setTitle("Alteração:");
    ad.setMessage(BIQActivity.comando + ";" + newnome + ";" + newpassword + ";" + newabreviatura + ";" + newusername + ";" + oldusername);
    ad.show();
}catch(Exception ex)
{

}

That function, uses this peace of code, to send data to the next code:

    csup=new CallSoapUpdatePerfil();
    String resp=csup.CallUpdatePerfil(newUser, newNome, newPass, newAbrev, ldusername);
    Perfil.rslt = resp; 

Finally, this is the code that send’s the data to the webservice:

public class CallSoapUpdatePerfil { 

public final String SOAP_ACTION = "http://tempuri.org/UpdatePerfil";

public  final String OPERATION_NAME = "UpdatePerfil"; 

public  final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/";

public  final String SOAP_ADDRESS = "http://10.0.2.2:80/BIQAndroid/BIQAndroid.asmx";

public String CallUpdatePerfil(String User, String Pass, String Nome, String Abrev, String oldusername)
{
    SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME);
    PropertyInfo pi=new PropertyInfo();
    pi.setName("User");
    pi.setValue(User);
    pi.setType(String.class);
    request.addProperty(pi);
    pi=new PropertyInfo();
    pi.setName("Pass");
    pi.setValue(Pass);
    pi.setType(String.class);
    request.addProperty(pi);
    pi=new PropertyInfo();
    pi.setName("Abrev");
    pi.setValue(Abrev);
    pi.setType(String.class);
    request.addProperty(pi);
    pi=new PropertyInfo();
    pi.setName("Nome");
    pi.setValue(Nome);
    pi.setType(String.class);
    request.addProperty(pi);
    pi=new PropertyInfo();
    pi.setName("oldusername");
    pi.setValue(oldusername);
    pi.setType(String.class);
    request.addProperty(pi);

    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
    SoapEnvelope.VER11);
    envelope.dotNet = true;

    envelope.setOutputSoapObject(request);

    HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
    Object response=null;
    try
    {
        httpTransport.call(SOAP_ACTION, envelope);
        response = envelope.getResponse();
    }
    catch (Exception exception)
    {
        response=exception.toString();
    }
    return response.toString();
}
}

If anyone can help… Regards.

  • 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-04T21:57:15+00:00Added an answer on June 4, 2026 at 9:57 pm

    I already find the error. The error is about the name of parameter of webservice. :s

    Done.

    Thanks anyway.

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

Sidebar

Related Questions

Good evening everyone! I am having a bit of a problem and need some
Good evening, i need to know how can i have one .h file that
Good evening. I'm developing an android application that uses Facebook SDK. I've no problem
Hi and good evening, hope someone can help. I am trying to get some
Good evening fellow coders, and thank you in advance for any help/attention. This is
Good evening, experts I want to solve recurrence equation using mathematica, x(n) = x(n
Good evening. I am doing a basic exercise to insert data into an Access
Good evening everyone, I am using a JavaScript to load/override content from an HTML-File
Good evening. I am using Yii framework and mPDF library to generate some PDF
Good evening! I want to display a uncommon layout into a HTML Textfield, 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.