function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ankit Singh 6Ankit Singh 6 

Outbound Message response send from Ruby on rqails

Hi All

We have setup outbound messages in Salesforce, and at our web application which is develped in ROR we have provided URL to receive those push data.

Currently, at ROR we are responding back with HTTP status 200 and no response data, Assuming that salesforce do not want any information as a response from these push data apart from HTTP status 200.

But, as there is limitation on outbound messages, they need response in below format : 

 
<element name="notificationsResponse">
    <complexType>
        <sequence>
            <element name="Ack" type="xsd:boolean" />
        </sequence>
    </complexType>
</element>

Please let us know if we need to farmat our response in above format. If yes please let us know to da that
Yugandhar Reddy 7Yugandhar Reddy 7
try this below format:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound">
   <Ack>true</Ack>
  </notificationsResponse>
 </soapenv:Body>
</soapenv:Envelope>