Proxy.jsp configuration to access a Non-ArcGIS authenticated server

321
1
07-29-2019 08:03 AM
GianniContino
New Contributor III

I'm trying to configure a ProxyEsri Java, i.e. proxy.jsp (ver. 1.1.2)
to call from a WAB app a remote server (NON ARCGIS) but a server that answers me with a simple JSON.

This server is authenticated with basic username and password.
My proxy.config is set as follows:

<?xml version="1.0" encoding="utf-8" ?>
   <ProxyConfig allowedReferers="*" logFile="proxy_log.log"
         logLevel="INFO"
         mustMatch="false">
   <serverUrls>
      <serverUrl url="http://services.arcgisonline.com" matchAll="true"/>
      <serverUrl url="http://remoteserver.com?param=value&format=json" matchAll="true"          username="DMS_USER"  password="P12345"/>
   </serverUrls>

</ProxyConfig>

I call the proxy as follows (on my tomcat):

http://localhost:8080/ProxyEsri/proxy.jsp?http://remoteserver.com?param=value&format=json

But it doesn't answer, because it prompts a login page for my proxy url. I tried to insert user and passwd again but it fails.

I tried also to call proxy sending user and password in url as:

http://localhost:8080/ProxyEsri/proxy.jsp?http://DMS_USER:P12345@remoteserver.com?param=value&format=json

Same result.

Any ideas?

Thanks

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Gianni,

   The esri proxy is specific to esri map services. It is not a generic proxy app that will work for non-esri service (most of the time).

0 Kudos