Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery: get xml from the web service
    text
    copied!<p>Trying to get xml from the web service:</p> <pre><code> $.ajax({ type: "GET", url: 'http://77.65.139.254:10000/_layouts/SPWebService/SPService.asmx/GetFileContentByUrl', data: { fileUrl: 'Accounts/8b077249-98bb-e011-926f-00155d000e46/EVTemplates/FEFCO0200/FEFCO%200203_3D.JPG' }, dataType: 'text/xml', success: function (html) { alert('yes'); } }); </code></pre> <p>the result is: XML Parsing Error: no element found Location: moz-nullprincipal:{1f083902-dc6e-4e0b-a18e-4aa1ab99ff56} Line Number 1, Column 1:</p> <p>my request looks like:</p> <pre><code>Host 77.65.139.254:10000 User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Accept */* Accept-Language en-us,en;q=0.5 Accept-Encoding gzip, deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection keep-alive Origin null </code></pre> <p>When I insert the link in the browser - it works ok - returns xml. the request (valid) looks like:</p> <pre><code>GET /_layouts/SPWebService/SPService.asmx/GetFileContentByUrl?fileUrl=Accounts/8b077249-98bb-e011-926f-00155d000e46/EVTemplates/FEFCO0200/FEFCO%200203_3D.JPG HTTP/1.1 Host: 77.65.139.254:10000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection: keep-alive </code></pre> <p>What is wrong with my jquery get?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload