You need to sign in to do that
Don't have an account?
Using the RESTful proxy in Flex
Hi all,
I am trying to create a s-control or Visualforce page that has a Flex app embedded in it. I have no problem embedding the Flex app, the problem comes when I need to query an outside RESTful web service. I understand this is done in javascript by going through the RESTful proxy, which Salesforce facilitates with a method named sforce.connection.remoteFunction().
I noticed that in the force-flex toolkit there is an (undocumented!) object called Connection2 which also has this method. However, every time I try calling this method (and thus the proxy) the proxy returns an HTTP 406 error.
Has anyone successfully done a RESTful call through the proxy using Flex? How could I go about doing that?