Select to view content in your preferred language

The ISA Server requires authorization to fulfill the request.

2090
0
01-10-2013 01:03 AM
cadgism
Regular Contributor
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 !!!!
0 Kudos
0 Replies