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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:33:17+00:00 2026-05-25T16:33:17+00:00

I am trying to use SOAP 2.4 to validate a username and password using

  • 0

I am trying to use SOAP 2.4 to validate a username and password using Android. I get a response from the server, I can confirm this as MySQL server confirmed my application made a request. However as you can see below I pass two parametres using the addProperty() method. MySQL server sees the request, but the values are null. As a result, I get a response saying “invalid username or password” however the username and password that I have hard coded is definitly in the database. Am I definitly passing the parametres correctly?

else {

        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); // set
                                                                        // up
                                                                        // request

        request.addProperty("User", "raji"); // variable name, value. I got
                                                // the variable name, from
                                                // the wsdl file!
        request.addProperty("Password", "PASSWORD");

        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                SoapEnvelope.VER11); // put all required data into a soap
                                        // envelope
        envelope.setOutputSoapObject(request); // prepare request
        AndroidHttpTransport httpTransport = new AndroidHttpTransport(URL);
        httpTransport.debug = true;
        httpTransport.call(SOAP_ACTION, envelope); // send request

        SoapObject result = (SoapObject) envelope.getResponse();            System.out.println(result);


    }

Here is the SOAP XML file

             <s:element name="ValidateUser">
              - <s:complexType>
             - <s:sequence>
               <s:element minOccurs="0" maxOccurs="1" name="User" type="s:string" /> 
                <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" /> 
                   </s:sequence>
               </s:complexType>
                     </s:element>
  • 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-05-25T16:33:17+00:00Added an answer on May 25, 2026 at 4:33 pm

    the solution code is here. I did not add the .net code

    SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); // set
            request.addProperty("User", sUserName); // variable name, value. I
                                                    // got
            request.addProperty("Password", sPassword);
    
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                    SoapEnvelope.VER11); // put all required data into a soap
            // envelope
            envelope.dotNet = true;
            envelope.setOutputSoapObject(request); // prepare request
            AndroidHttpTransport httpTransport = new AndroidHttpTransport(URL);
            httpTransport.debug = true;
            httpTransport.call(SOAP_ACTION, envelope); // send request
    
            System.out.println("HERE IS THE ENVELOPE "
                    + envelope.getInfo("User", "Password"));
            SoapObject result = (SoapObject) envelope.getResponse();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the 'Response' text from a SOAP response in SQL Server
HI while trying to use soapUI, I got error; SOAP RESPONSE FAILED: this is
I'm trying to use the CleverElements SOAP API, but I can't get it to
Hi i am trying to use soap to get results from amazon, and i
I am trying to use wsdl2objc with this soap web service. But when am
I'm trying to use a Web Service using PHP and SOAP. The Web Service
I'm trying to use Axis2 to connect to a SOAP webservice. This was previously
I am trying to use the tranlsation webservice from MyMemory: http://mymemory.translated.net/doc/spec.php Unfortunately, Zend_Soap_Client does
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The

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.