cadgis

The ISA Server requires authorization to fulfill the request.

Discussion created by cadgis on Jan 10, 2013
Hi

I am playing with the samples and when trying to connect behind a proxy I get an error

01-10 13:50:23.660: E/ArcGIS(5943): com.esri.core.io.EsriServiceException: Proxy Authentication Required
( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )


I added the following code to access the proxy
/************************************
public void onCreate(Bundle savedInstanceState) {
       
         DefaultHttpClient httpclient = new DefaultHttpClient();
        HttpHost proxy = new HttpHost("xxx.xx.xxx.xxx", xxxx);
        httpclient.getCredentialsProvider().setCredentials(
          new AuthScope("xxx.xx.xxx.xxx", xxxx),
          new UsernamePasswordCredentials("usrname", "pswrd"));
        httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
       
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
}
/***********************************

Still I get the error.  How can I make this sample work from behind the proxy please !!!!

Outcomes