Hi Every Body I'm Having Some Confusing Problem And I Need Help I Have Written Some Code To Initialize xmlHttpRequest To Send Request And Recieve Some Response,Here Is My Code:
function initRequest(url)
  {
    if(window.XMLHttpRequest){
       req=new XMLHttpRequest();
    }
    else if(window.ActiveXObject)
     {
      isIE=true;
      req=new ActiveXObject("Microsoft.XMLHTTP");
     }
   }
function validateUser()
   {           
      var sPath = window.location.pathname;
      var sAddress = sPath.substring(0,sPath.lastIndexOf('/') + 1);
     var url=sAddress+"WebService2.asmx?op=HelloWorld";               
     initRequest(url);
     req.onreadystatechange=processRequest;
     req.open("GET",url,true);
     req.setRequestHeader("Content-Type", "text/xml;charset=UTF-8");
     req.send(null);      
  }
function processRequest()
  {
    if(req.readyState==4){
     if(req.status==200)
       {
        var message="invalid";
        alert(req.responseText);           
        //message=req.responseXML.getElementsByTagName("valid")[0].childNodes[0].nodeValue;
        //SetMessage(message);
       }
       else
       {
       alert(req.statusText);
       }
     }       
  }
My Problem Is:I Dont Know Where/How To Get The Proper XML Response From The Url Im Specifying,I Worked With Respose Object In HelloWorld Method Of My WebService But The Result Was Some DOM Architecture of a Page To Invoke The Method ...
Every Single Clue Would Be Appreciated