I have two 10.3 ags servers that i thought were the same. But on one i can send this request to the rest api endpoint and it does not work:
http://xeballl03/arcgis/rest/services/Integrator/RouteMap/MapServer/3/query?f=json&where=STATE_NAME%3D%27Hawaii%27&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=*&callback=dojo.io.script.jsonp_dojoIoScript5._jsonpCallback
returns
dojo.io.script.jsonp_dojoIoScript5._jsonpCallback({"error":{"code":400,"message":"Failed to execute query.","details":[]}});
but on my other 10.3 server this does work
the call with the extra param in the url is being generated by a client app that i have (js api 2.0). How is that extra part generated? is it a setting in the js api?