How to call a Rest SOE in flex?

2295
5
Jump to solution
12-27-2012 09:21 AM
XintaoLiu
Occasional Contributor II
Are there any examples or sample codes? Thanks!
0 Kudos
1 Solution

Accepted Solutions
RichardWatson
Frequent Contributor
I have never used Flex but it looks like the help has samples:

Go to this page:

http://resources.arcgis.com/en/communities/flex-api/

Look on the right hand side for Samples.

View solution in original post

0 Kudos
5 Replies
XintaoLiu
Occasional Contributor II
Are there any examples or sample codes? Thanks!


Any of your comments and suggestions are highly appreciated!
0 Kudos
RichardWatson
Frequent Contributor
I have never used Flex but it looks like the help has samples:

Go to this page:

http://resources.arcgis.com/en/communities/flex-api/

Look on the right hand side for Samples.
0 Kudos
RichardWatson
Frequent Contributor
REST is based on HTTP so in order to call the REST SOE endpoint you simply send an HTTP request (GET or POST) to the endpoint (URI) using whatever mechanism is provided by the Flex framework.

The URI that you send the request to consists of a fixed prefix and REST SOE schema specific suffix.  Use the REST Services Directory in order to understand how to form the URL.  It is essentially a hierarchical scheme.

The typical response to a request is JSON.

If you want to see trivial SOE examples then look in:

C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\Samples\ArcObjectsNet

I think that you should be able to find a large number of Flex examples which call HTTP services.  The REST SOE is really just a REST endpoint which is called using HTTP.
0 Kudos
XintaoLiu
Occasional Contributor II
REST is based on HTTP so in order to call the REST SOE endpoint you simply send an HTTP request (GET or POST) to the endpoint (URI) using whatever mechanism is provided by the Flex framework.

The URI that you send the request to consists of a fixed prefix and REST SOE schema specific suffix.  Use the REST Services Directory in order to understand how to form the URL.  It is essentially a hierarchical scheme.

The typical response to a request is JSON.

If you want to see trivial SOE examples then look in:

C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\Samples\ArcObjectsNet

I think that you should be able to find a large number of Flex examples which call HTTP services.  The REST SOE is really just a REST endpoint which is called using HTTP.


Thanks a lot!
0 Kudos
nicogis
MVP Frequent Contributor
0 Kudos