rockster
2008-07-28 16:11:03 UTC
Trying to implement virtual earth map customer identification in staging.
I have created a web reference and the code is as follows:
net.mappoint.staging.CommonServiceSoap commonService = new
net.mappoint.staging.CommonServiceSoap();
commonService.Url = "http://staging.mappoint.net/standard-30/common.asmx";
commonService.Credentials = new
System.Net.NetworkCredential(ConfigurationManager.AppSettings["VEUserID"],
ConfigurationManager.AppSettings["VEPassword"]);
net.mappoint.staging.TokenSpecification tokenSpec = new
net.mappoint.staging.TokenSpecification();
tokenSpec.ClientIPAddress = Page.Request.UserHostAddress;
tokenSpec.TokenValidityDurationMinutes = 480;
string clienttoken = commonService.GetClientToken(tokenSpec);
The error returned is:
The request failed with HTTP status 403: Forbidden.
Any ideas?
I have created a web reference and the code is as follows:
net.mappoint.staging.CommonServiceSoap commonService = new
net.mappoint.staging.CommonServiceSoap();
commonService.Url = "http://staging.mappoint.net/standard-30/common.asmx";
commonService.Credentials = new
System.Net.NetworkCredential(ConfigurationManager.AppSettings["VEUserID"],
ConfigurationManager.AppSettings["VEPassword"]);
net.mappoint.staging.TokenSpecification tokenSpec = new
net.mappoint.staging.TokenSpecification();
tokenSpec.ClientIPAddress = Page.Request.UserHostAddress;
tokenSpec.TokenValidityDurationMinutes = 480;
string clienttoken = commonService.GetClientToken(tokenSpec);
The error returned is:
The request failed with HTTP status 403: Forbidden.
Any ideas?