B
Bat'on
Hi,
I try to consume a webservice. In order to see it in IE, I needed to install
(provided) X509 certs (I got 2 of them) When I try to open that page
in IE, I'm being asked which cert I want to use, and page opens.
Now when I try to add webreference in VS2K3, after i type url in that
wizzard, I'm asked again to choose a cert. Then wsdl appears, but on
the right side of the wizzard ("Web services found at that url") I see:
There was an error downloading 'https://url/name.asmx?WSDL'.
The request failed with HTTP status 403: Forbidden.
Any chance to fix that?
Second question. OK, I managed to add a webreference to other WS
with the same WSDL, than I change url to that of secured webserwice.
test.Url = "https://secured_url/";
and add cert to client certificates using:
test.ClientCertificates.Add(X509Certificate.CreateFromSignedFile(@"C:\test.pfx");
But I still get:
System.Net.WebException: The request failed with HTTP status 403: Forbidden.
:-( Any hint? What am I doing wrong?
Bat
I try to consume a webservice. In order to see it in IE, I needed to install
(provided) X509 certs (I got 2 of them) When I try to open that page
in IE, I'm being asked which cert I want to use, and page opens.
Now when I try to add webreference in VS2K3, after i type url in that
wizzard, I'm asked again to choose a cert. Then wsdl appears, but on
the right side of the wizzard ("Web services found at that url") I see:
There was an error downloading 'https://url/name.asmx?WSDL'.
The request failed with HTTP status 403: Forbidden.
Any chance to fix that?
Second question. OK, I managed to add a webreference to other WS
with the same WSDL, than I change url to that of secured webserwice.
test.Url = "https://secured_url/";
and add cert to client certificates using:
test.ClientCertificates.Add(X509Certificate.CreateFromSignedFile(@"C:\test.pfx");
But I still get:
System.Net.WebException: The request failed with HTTP status 403: Forbidden.
:-( Any hint? What am I doing wrong?
Bat