Kathryn Verdoorn
2009-07-09 14:53:01 UTC
I have a web service in .NET 3.5. I have created a web reference to
https://staging.mappoint.net/secure-30/mappoint.wsdl. When my managed c#
application calls the function in my webservice, the following code is
executed:
---
MobilePhotographyWebService.MapPointService.FindServiceSoap findService =
new MobilePhotographyWebService.MapPointService.FindServiceSoap();
findService.PreAuthenticate = true;
findService.Credentials = new System.Net.NetworkCredential(<user>,
<password>);
findService.Url =
"https://staging.mappoint.net/secure-30/mappoint.wsdl";
MobilePhotographyWebService.MapPointService.FindSpecification
findSpec = new
MobilePhotographyWebService.MapPointService.FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = fromAddress.Street + ", " + fromAddress.City +
", " + fromAddress.State + " " + fromAddress.Zip;
MobilePhotographyWebService.MapPointService.FindResults startResult
= findService.Find(findSpec);
---
When the last statement executes, I receive the following error:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.Net.WebException: The underlying connection was closed:
Could not establish trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure.
I have been scouring the web for the past couple of days. I have tried
importing the certificate into every possible "trust" area and still can't
get past this. Has anyone else had this problem????? We want to use the
secure one in production so switching to the standard wsdl is not an option.
Plus, it throws a 405 error on the same line...
https://staging.mappoint.net/secure-30/mappoint.wsdl. When my managed c#
application calls the function in my webservice, the following code is
executed:
---
MobilePhotographyWebService.MapPointService.FindServiceSoap findService =
new MobilePhotographyWebService.MapPointService.FindServiceSoap();
findService.PreAuthenticate = true;
findService.Credentials = new System.Net.NetworkCredential(<user>,
<password>);
findService.Url =
"https://staging.mappoint.net/secure-30/mappoint.wsdl";
MobilePhotographyWebService.MapPointService.FindSpecification
findSpec = new
MobilePhotographyWebService.MapPointService.FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = fromAddress.Street + ", " + fromAddress.City +
", " + fromAddress.State + " " + fromAddress.Zip;
MobilePhotographyWebService.MapPointService.FindResults startResult
= findService.Find(findSpec);
---
When the last statement executes, I receive the following error:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.Net.WebException: The underlying connection was closed:
Could not establish trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure.
I have been scouring the web for the past couple of days. I have tried
importing the certificate into every possible "trust" area and still can't
get past this. Has anyone else had this problem????? We want to use the
secure one in production so switching to the standard wsdl is not an option.
Plus, it throws a 405 error on the same line...