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
DianeMDianeM 

Accept an incoming feed.

I have an application I would like to build that accepts an incoming feed.  Has anyone attempted this on the Force.com platform?  The data feed coming in contains an xml message.  I will parse it and take an action although I am happy just saving it in a business object and parsing it later.

 

Thanks

joshbirkjoshbirk

An Apex class can make HTTP callouts:

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_httprequest.htm

 

And there's a link at the top there which should help parsing XML.

DianeMDianeM

An application running on a server outside of Salesforce needs to periodically send a data feed to my application.  Actually my application will be on the receiving end of a Post from the other server.  Do you know of a way to configure a Salesforce org to accept those feeds?

 

Thank you,

joshbirkjoshbirk

What kind of server is running the application generating the feeds?  Have you looked at the SOAP API?  We've got several toolkits/code samples for integrating back to your Salesforce org with languages like PHP, Java and .Net:

 

http://wiki.developerforce.com/index.php/Integration

DianeMDianeM

I have looked at the SOAP API unfortunately I have no control over the code running on this other server.  All I can do is configure it and give it a URL to send the feed to.  I may have to use an intermediate server to accept the feed and then use the API to put the data into Salesforce.

 

Thanks for thinking about his.

BaloodevilBaloodevil

I am interested in the same thing.  Periodic pushes of (non-XML) data to salesforce that I need to parse and create instances of a custom object.  I also do not have control over the sender... I can only set the url that gets POSTed to.  Please let me know if you figure anything out.