Autocomplete and Secured Services
Does the autocomplete field work in forms with secured services? If so, how do I pass the token to the autocomplete field? Thanks. -Tom
-
Hi Tom,
In the current version of forms the only way to access a secured service is to use a proxy page set in the "Query Task Url" directly.
for example.
In the next release of forms (1.1), there will be proxyUrl and Token attributes available when configuring the autocomplete/combobox/listbox.
Cheers,
Christian.
P.S. To set up a proxy page, follow ESRI's instructions:
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm
0 -
Not sure what is going wrong. The instructions for setting up a proxy are a bit vague for IIS7.5. When I try to use the proxy, I get:
{"error":{"code":498,"message":"Invalid token","details":[]}}
I've tested the token and it is valid. Are there any specific instructions of IIS7.5, also does the ashx need to be rewritten to a aspx (URL rewrite)? Not an IIS person.
Thanks, -Tom
0 -
I am trying to doing the same thing on IIS 7.5 as well, did anyone manage to get it to work?
Using Essential 3.7.
0 -
Yes, I got this working. In my case, GeoCortex and ArcGIS Server are on the same physical machine. Instead of passing the website address to retrieve a token, use the IP address of the server. -Tom
0 -
Oh and the other thing I messed up. I set up the application on the file, not on the folder in IIS. That was bad.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare