I am new to this ArcGIS Map. I am developing an application where we are using a user token instead of passing username and password in User Credentials.
UserCredentials creds = new UserCredentials();
I am stuck at this point. What do I really have to pass in as a parameter for referral? I tried passing null and empty string as a parameter but I get an error message saying "token or referral cannot be empty string"
When I passed some parameter I am getting "com.esri.core.io.EsriServiceException not found" exception
Can someone help me with this?
Thanks in advance
Hello Hari Narayana Pochiraju,
I am going to make the assumption that you are generating the token through ArcGIS Online and not ArcGIS Server.
referer string that is either the name of the application consuming the secure service or any other client identification string that is appropriate for the application. It is required that the referer string that was used to generate the token be supplied to this method.
What happens when you set this as the referrer: