2010 – Error reading a syndication element: • The data at the root level is invalid. Line 1, position 1. & # 39;

First time play in this environment. I am very limited on the tools. Browser, notebook and Internet. I feel a little rusty, I have not programmed for a long time and I feel lost now.

Try to read a list of SPs using AJAX. I have reached this 400 Bad Request Error according to the title. You will find below my request and the source code of the list I am trying to read.

I'm trying to read the list in a javascript version, but if I can not overcome the 400 error, I am stuck. Thank you to all who can correct me.

Here is my request:

function getRFCList () {
var data = "_vti_bin / listdata.svc / RFCExtract";
var url = BASE_URL + data;
var thing = {};
thing.title = "LinkTitle";
var body = Sys.Serialization.JavaScriptSerializer.serialize (thing);

console.log (url); // URL verified, it correctly loads the list

$ .ajax ({
type: "POST",
url: url,
processData: false,
contentType: "application / atom + xml",
data: body,
error: function (ts) {
console.log (ts.responseText);
console.log (ts);
}
success: function (data) {
alert (data);
}
});
};

Here is the source code of the URL that loads the list.





<feed xml: base = "<**BASE_URL**>/_vti_bin/listdata.svc/ "xmlns: d =" http://schemas.microsoft.com/ado/2007/08/dataservices "xmlns: m =" http://schemas.microsoft.com/ado/2007/ 08 / dataservices / metadata "xmlns =" ​​http://www.w3.org/2005/Atom ">
  RFCExtract
  <**BASE_URL**>/_vti_bin/listdata.svc/RFCExtract
  2018-11-29T12: 43: 44Z
  
  
    <**BASE_URL**>/_vti_bin/listdata.svc/RFCExtract(1)
    Test
    2018-11-28T15: 07: 57-05: 00
    
      
    
    
    
    
    
    
    
      
        0x010018E49BFAAA76C74C8D9E319D13220A60
        Test
        1
        Closed
        2010-11-01T00: 00: 00
        1
        1
        article
        2018-11-28T15: 07: 57
        2018-11-28T15: 07: 57
        9929
        9929
        1
        1.0
        / sp / CCSB / Lists / RFC Extract
      
    
  
  
    <**BASE_URL**>/_vti_bin/listdata.svc/RFCExtract(2)
    Test Record 2
    2018-11-29T07: 42: 19-05: 00
    
      
    
    
    
    
    
    
    
      
        0x010018E49BFAAA76C74C8D9E319D13220A60
        Test Record 2
        2
        waiting
        2018-11-02T00: 00: 00
        2
        2
        article
        2018-11-29T07: 42: 19
        2018-11-29T07: 42: 19
        9929
        9929
        1
        1.0
        / sp / CCSB / Lists / RFC Extract