Discussion:
Authentication Problem when Adding Service Reference in Visual Studio
(too old to reply)
I***@nospam.nospam
2008-07-24 18:30:40 UTC
Permalink
I have an example of batched geo coding that was written for .NET 2.0.
It uses the following URL:

https://mappoint-cds.live.com/CustomerData-30/CustomerDataService.asmx

I have a .NET 3.5 project and I need to generate Service Reference in Visual
Studio project for that URL, but I keep getting an error message about user
anonymous. I don't see any way to supply user id and password in visual
studio dialog. I am trying to use WCF instead of .NET 2.0 webservices API if
that makes any difference.

Error Message:

There was an error downloading
'https://mappoint-cds.live.com/CustomerData-30/CustomerDataService.asmx'.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that cannot be resolved:
'https://mappoint-cds.live.com/CustomerData-30/CustomerDataService.asmx'.
The HTTP request is unauthorized with client authentication scheme
'Anonymous'. The authentication header received from the server was 'Digest
qop="auth", realm="MapPoint",
nonce="5e073d737f8ee0ce420429612100aba7ba36a4d7a54649df3f1787b2cdfc"'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution
and adding the service reference again.
Derek Chan
2008-07-24 19:49:02 UTC
Permalink
Hi,

I believe that the infamous "400: Bad Request" error frequently appears when
you try to get a web reference off the CDS asmx web service in VS 2005. What
I've found works is that you download the .wsdl locally and make the web
reference off your local copy. The CDS service rarely gets updated so this
workaround should be okay but just keep in mind if it does ever get updated
you'll need to download another copy and re-run the process for VS 2005.

Hope that helps,
--
Infusion Development
http://www.infusion.com
Post by I***@nospam.nospam
I have an example of batched geo coding that was written for .NET 2.0.
https://mappoint-cds.live.com/CustomerData-30/CustomerDataService.asmx
I have a .NET 3.5 project and I need to generate Service Reference in Visual
Studio project for that URL, but I keep getting an error message about user
anonymous. I don't see any way to supply user id and password in visual
studio dialog. I am trying to use WCF instead of .NET 2.0 webservices API if
that makes any difference.
There was an error downloading
'https://mappoint-cds.live.com/CustomerData-30/CustomerDataService.asmx'.
The request failed with HTTP status 400: Bad Request.
'https://mappoint-cds.live.com/CustomerData-30/CustomerDataService.asmx'.
The HTTP request is unauthorized with client authentication scheme
'Anonymous'. The authentication header received from the server was 'Digest
qop="auth", realm="MapPoint",
nonce="5e073d737f8ee0ce420429612100aba7ba36a4d7a54649df3f1787b2cdfc"'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution
and adding the service reference again.
Loading...