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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:47:44+00:00 2026-06-02T09:47:44+00:00

I am working on phonegap app. I need to validate user through .net webservice.

  • 0

I am working on phonegap app. I need to validate user through .net webservice. I am using ajax to validate and parsing it through javascript.but i am stuck at readystate as it always return zero. I tried many things from available solutions I found in net but I don’t get it right.

Here is my Javascript:

username = 'ksl';
password = 'ksl';
var soapMessage = 
        '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> \
        <soap:Body> \
        <CheckLogin xmlns="http://tempuri.org/"> \
        <UserName>' + username + '</UserName> \
        <Password>' + password + '</Password> \
        </CheckLogin> \
        </soap:Body> \
        </soap:Envelope>';

        $.ajax({
            url: validationURL,
            type: "POST",
            dataType: "xml",
            data: soapMessage,
            success: validate,
            contentType: "text/xml; charset=\"utf-8\"",
            error: function(xhr,status,error)
            {
            alert("state is:" + xhr.readyState);
            }
        }); 

        return false; 

and here is my webservice response:

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CheckLoginResponse xmlns="http://tempuri.org/">
      <CheckLoginResult>string</CheckLoginResult>
    </CheckLoginResponse>
  </soap:Body>
</soap:Envelope>

any response will be helpful

  • 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-02T09:47:47+00:00Added an answer on June 2, 2026 at 9:47 am

    Ok..I found the problems::

    1) there was space after </soap:Body> \ so I removed that.

    2) I made some changes in html and it works fine..

    Thanks for having look at my problems..

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

Sidebar

Related Questions

I need help, working on iPhone app using phoneGap 0.9.6. while using app I
I'm using ShareKit to post to Facebook from a PhoneGap app which I'm working
I am working on an app for android using phonegap and unity. I wrote
I'm developing an iOS app. Its working properly on simulator. I'm using phonegap and
I am creating a new app using phonegap (html and javascript) and am using
I am developing an Android app using Phonegap and jQueryMobile, working in Eclipse. I
Am making a basic phonegap based android app. All working perfectly and using localstorage
I'm creating an app for iPhone using phoneGap, but I'm sure it is not
I'm working on a mobile web-app using sencha touch, HTML5 and phonegap as a
I'm working on a phonegap iPhone app which downloads content from the network 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.