1

I'm trying to call a simple web service and send an email address as a parameter, and i'm getting this error saying "Request format is unrecognized for URL unexpectedly ending in '/IsPreUsedEmail'".

Any Idea?

Thanks.

Client side:

function GetIsPreUsedEmail(sEmail) 
{
    var Url = "http://localhost:52476/MyShul/Services/GetData.asmx/IsPreUsedEmail";
    xmlHttp = new XMLHttpRequest();
    xmlHttp.open("GET", Url, false);
    xmlHttp.send('jbjkb@kjbk');
    var xmldoc;
    xmldoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
    xmldoc.loadXML(xmlHttp.responseXML.xml);
    if (xmldoc.parseError.errorCode != 0) {
         alert("DOM Not Loaded")
    }            
    return xmlHttp.responseXML.xml;
 }

Server side:

[WebMethod]
public bool IsPreUsedEmail(string sEmail) 
{
    return true;
}

1 Answer 1

3

change the url to,

var Url = "http://localhost:52476/MyShul/Services/GetData.asmx/[email protected]";
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.