i3_abarton

Error - French localization support using .NET client library

Discussion created by i3_abarton on Jun 22, 2011
Latest reply on Jun 28, 2011 by rnarayanan-esristaff
I'm using the ESRI.ArcGIS.Client .NET api version 2.1.0.446. When performing an asynchronous request on the geometry service where the HTTP Accept-language header is french I receive the following error.

{"error":{"code":400,"message":"Unable to complete Buffer operation.","details":["'distances' parameter is invalid"]}}


Example failing request
GET /ArcGIS/rest/services/Geometry/GeometryServer/buffer?inSR=4326&outSR=4326&bufferSR=4326&distances=178.412411615277&unit=9001&unionResults=true&geometries=-77.1075924528302%2c39.0304150943396&f=json& HTTP/1.1
Host: arcserver.host.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Cache-Control: max-age=0


I cannot find a way to adjust the request headers, enforce a culture/format on the input parameters, or manually adjust the generated URI using the ArcGIS client .NET library.

Any ideas on how I can solve this problem while still utilizing the .NET library?

Outcomes