Pinched the code from this profiler sample. Having some trouble setting it up with my custom Esri Flex application.
My Flex application is using the Web Mercator Aux Sphere WKID and is using v10 map services, and therefore is 3857 WKID.
When using the tool within my application, I get a 500 error. This is the request is sends:
http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService/execute?f=json&Display_Segments=true&Image_Width=600&Input_Polylines={%22features%22%3A[{%22geometry%22%3A{%22paths%22%3A[[[16616585.72030409%2C-4240972.45511179]%2C[16390943.612806262%2C-4351041.775842438]]]%2C%22spatialReference%22%3A{%22wkid%22%3A3857}}}]}&Image_Height=250
sampleserver2 is on a 9.3.1 setup.
If I swap out the 3857 at the end of that link for the older 102100, I get a correct JSON response.
So how do I get around this?
I can't see an equivalent service on the v10 sample servers.
My environment is all v10, and I would prefer to keep my app within the newer 102100 WKID.
Further info on the change in WKIDs.