Select to view content in your preferred language

Error - French localization support using .NET client library

834
2
06-22-2011 01:02 PM
AustinBarton
Emerging Contributor
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?
0 Kudos
2 Replies
AustinBarton
Emerging Contributor
ESRI.ArcGIS.Client .NET api version 2.2.0.629 does not resolve the issue.
0 Kudos
RaviNarayanan
Esri Contributor
Austin,
Does it work if a comma delimited value is used for the input distance? This could be related to a bug in .NET REST API where double values input to GP and Geometry Service are not culture invariant (NIM070072).

thanks
Ravi
0 Kudos