title: The XML you provided was not well-formed or did not validate against our published schema: while calling S3 bucket from Salesforce
body: <p>Folks,</p>
  <p>A total newbie here when it comes to making end-to-end integrations. I am trying to &quot;put&quot; my salesforce data to the s3 bucket but receiving:</p>
  <p>The XML you provided was not well-formed or did not validate against our published schema</p>
  <p>Here's what I am doing:</p>
  <pre><code>List&lt;Task&gt; tasks = new List&lt;Task&gt;([SELECT ID from TASK WHERE Id =:recordId LIMIT 1]);
      
      for(Task task:tasks)
      {
          try
          {
              //File Content
              String Body = JSON.serialize(task);
              
              HttpRequest req = new HttpRequest();
              req.setMethod('PUT');
              req.setEndpoint('callout:AWS_Credentials');
              req.setHeader('Content-Type', 'application/json;charset=UTF-8');
              req.setBody(Body);
              
              Http http = new Http();
              HTTPResponse res = http.send(req);
  </code></pre>
  <p>What might I be doing wrong here? Too lost to see..</p>
  <p>Thanks in advance!</p>