dotnet web services:
i'm having a very strange problem, i've been fighting it for more than 3
weeks. I am using WSE 3.0 t ocall a third party website, but when i call a
method through the proxy object i get NO RESPONSE at all just this exception:
The underlying connection was closed: An unexpected error occurred on a send.
however if i take the EXACT SAME soap request and headers generated by the
webservice and enter it into a product like SoapScope, and run it there, i
get a response. (the url in here is the one i am having a problem with, if
anybody wants to experiment
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("
https://www.tpvs.hmrc.gov.uk/dpsauthentication/dpsauthentication.jws");
myReq.GetResponse();
so i decided to go lower level, and just communicate with the site via a
HttpWebRequest or WebClient , (as if you go to the site with the browser
you;'ll get a HTML reply at least.. i just want SOME reply).. however even
simple things like the following give the same error.
WebClient wc = new WebClient();
wc.DownloadString("
https://www.tpvs.hmrc.gov.uk/dpsauthentication/dpsauthentication.jws");
this leads me to believe the issue is at a much lower level than WSE 3.0, or
SOAP itself. but i don't know what to do. i've tried the advice on the
newsgroups for this error with .Keepalive to no avail. and also this
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
delegate(object sender2, X509Certificate certificate,
X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
MessageBox.Show("dude");
bool validationResult = true;
return validationResult;
};
but it never gets called.
in need of desperate help.
Karl Prosser