title: Calling Restful service through jQuery Ajax
body: <p>I am trying to access a restful web service using jQuery Ajax but getting following error:  <br/>
  <strong>XML Parsing Error: no element found Location: moz-nullprincipal:{cefa3a59-2437-454f-b39a-384cf1fdf072} Line Number 1, Column 1:</strong></p>
  
  <p>This how I am making the call:
  <pre><code>function getResponse(){
         $.ajax( {
         type:'Get',
         dataType:'xml',
         url:'http://localhost:8080/RestTest/restservice/number',
         success:function(data) {
          alert(data);
       }
     } );
  }</pre></code></p>
  
  <p>Here my response data type is xml.  <br/>I understand that there is some cross domain issue but not sure how to resolve it. Please help me on this.</p>