ArcGIS.PCL–The What, Why & How

This post has been moved to http://davetimmins.com/post/2013/July/ArcGIS-PCL/

Advertisements

4 comments

  1. Thank you for the nice work.

    I am having problems with the TokenProvider. I am getting “invalid token” when using my own ArcGIS Server which is behind a java web adaptor. If I replaces the Token.Value with a token that I have manually generated by using “Request IP” I no longer have the problem.

    Any ideas?

    Best regards
    Jonas

    1. Hi Jonas, is the code that uses the token coming from the same location as the generate token request? If not then it will be a different request IP. If that doesn’t fix it then setting the client and referer parameters to null should do the trick. Currently the client has a private setter though so unless you want to get the code from GitHub and build it yourself you will have to wait for me to release an updated build. I will try push the fix out later today. Thanks for finding the issue though.

      Cheers,
      Dave

    2. Hi Jonas,

      should be fixed in v2.2.0. Just need to set the Client to null,

      public class SecureTokenProvider : TokenProvider
      {
      public SecureTokenProvider(ISerializer serializer)
      : base(“server url”, “user”, “pass”, serializer)
      {
      this.TokenRequest.Client = null;
      }
      }

      Cheers,
      Dave

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s