Server object extension usage in client applications

You can use server object extensions (SOEs) in any application that can make an HTTP request to the server and parse the response. The inputs and outputs of SOEs are simple types, such as numbers, text strings, and XML and JSON objects. The consuming application doesn't need to have any understanding of ArcObjects.

You'll often test your SOE in the Services Directory (assuming you are using a REST SOE), then write code to consume the SOE in your client application.

Testing your SOE in the Services Directory

The fact that you submit simple types to your SOEs allows you to test your REST web service SOEs in the Services Directory. After enabling the SOE on your map service, navigate to the map service's page in the Services Directory. At the bottom of the page, you'll see the SOE listed under Supported Extensions. (If you don't see it, verify the ArcGIS Server administrator has cleared the REST cache.)

If you click the SOE in the Services Directory, you'll be able to click and explore the resources and operations you exposed. Click an operation and you'll see some input boxes that you can use to test the SOE requests and responses. You should get back a simple JSON or HTML response.

Using your SOE in a client application

When you expose your SOE as a REST web service, you can consume it in the Esri web and mobile APIs. No matter which API you use, working with your SOE web service requires the following:

Although the coding patterns are similar, the classes that you use for working with SOEs vary across the APIs.

The online SDKs for the Esri web APIs offer focused code examples showing the above patterns.

12/18/2014