Basemap Gallery - proxy page error

1143
0
04-13-2011 07:03 AM
CedrikVanderhaegen
New Contributor
Hy,

When I use a proxy page (for accessing http basic secured web services), I get an error when using the Basemap gallery. The initial background is displayed ok, as are the vector layers on top. I get the error when tryien to switch the basemap.

Firebug report:
error is in BasemapGallery.xd.js, line 19
"TypeError: _32.serviceInfoResponse is undefined"

Config:
ArcGIS Server 10, java edition
windows server 2008
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.2"></script>

jsp code to trigger proxy page:
esri.config.defaults.io.proxyUrl = "http://localhost:8080/geotoerisme/proxy.jsp";
esri.config.defaults.io.alwaysUseProxy = true;

code in proxy page for basic authentication:
String userpass = "testuser" + ":" + "xxxx";
String basicAuth = "Basic " + new BASE64Encoder().encode(userpass.getBytes());
con.setRequestProperty ("Authorization", basicAuth);
System.out.println("basic: " + basicAuth);

Anybody an idea?
0 Kudos
0 Replies