When attempting to call a basic web service and pass an email address as a parameter, I encountered an error message stating "Request format is unrecognized for URL unexpectedly ending in '/IsPreUsedEmail'".
Any suggestions on how to resolve this issue?
Thank you.
On the client side:
function CheckEmailAvailability(email)
{
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;
}
On the server side:
[WebMethod]
public bool IsPreUsedEmail(string sEmail)
{
return true;
}