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
FlexJoshFlexJosh 

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?