Thursday, December 04, 2003 10:51 AM Jan Tielens

Consuming Webservices over HTTPS (SSL)

When Webservices are used, a common concern is security: SOAP messages are transferred in plain text over the network, so anyone with a sniffer could intercept the SOAP message and read it. In my opinion this could happen also to binary data, but probably it requires a little bit more hacker skills. So a solution is to use HTTPS (SSL) instead of HTTP, so the communication is encrypted. To accomplish this, you need to get and install a certificate (issued by a Certificate Authority) on your webserver. In a production environment you would buy a certificate from Verisign or another well known CA, or you would install your own CA, which is a component of Windows Server. If you only want to play with HTTPS, SSL and certificates or your project is in the development phase, you can also generate a test certificate using the MakeCert.exe tool (included in the .NET Framework SDK). After that you have to add this certificate to a website in IIS, and set a port which HTTPS should use.

When you browse to a HTTPS site, you probably get a dialog window asking you if you want to trust the certificate provided by the webserver. So the responsibility of accepting the certificate is handled by the user. Let's get back to the webservice scenario, if you want to invoke a webservice located on a webserver which uses SSL and HTTPS there is a problem. When you make the call from code, there is no dialog window popping up, and asking if you trust the certificate (luckily because this would be pretty ugly in server-side scenarios); probably you'll get following exception:
An unhandled exception of type 'System.Net.WebException' occurred in system.dll

Additional information: The underlying connection was closed: Could not establish trust relationship with remote server.

But there is a solution for this problem, you can solve this in your code by creating your own CertificatePolicy class (which implements the ICertificatePolicy interface). In this class you will have to write your own CheckValidationResult function that has to return true or false, like you would press yes or no in the dialog window. For development purposes I've created the following class which accepts all certificates, so you won't get the nasty WebException anymore:
public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy
{
 public TrustAllCertificatePolicy()
 {}

 public bool CheckValidationResult(ServicePoint sp,
  X509Certificate cert,WebRequest req, int problem)
 {
  return true;
 }
}

As you can see the CheckValidationResult function always returns true, so all certificates will be trusted. If you want to make this class a little bit more secure, you can add additional checks using the X509Certificate parameter for example. To use this CertificatePolicy, you'll have to tell the ServicePointManager to use it:
System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
This must be done (one time during the application life cycle) before making the call to your webservice.

Comments

# re: Consuming Webservices over HTTPS (SSL)

Monday, December 08, 2003 3:19 PM by Eran

can you give mo details

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, December 09, 2003 4:03 PM by Jan

What kind of details are you looking for??

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, December 10, 2003 11:20 AM by cristina

Sorry, but I try your solution and it doesn´t work.

Do you know what can be happening?

My code is:
public __gc class MyCertificateValidation : public ICertificatePolicy
{
public:

bool CheckValidationResult(ServicePoint* , X509Certificate* ,
WebRequest* request, int problem)
{
return true;
};
};


System::Net::ServicePointManager::CertificatePolicy = new MyCertificateValidation();

HttpWebRequest* wrq = static_cast<HttpWebRequest*> (WebRequest::Create(url));

HttpWebResponse* hwr = static_cast<HttpWebResponse*>(wrq->GetResponse());
Stream* strm = hwr->GetResponseStream();
FileStream* fs = new FileStream(fpath,FileMode::Create,FileAccess::Write);
BinaryWriter* br = new BinaryWriter(fs);
int b;
while((b=strm->ReadByte()) != -1)
{
br->Write(Convert::ToByte(b));
}
br->Close();
strm->Close();

# re: Consuming Webservices over HTTPS (SSL)

Sunday, December 14, 2003 8:17 AM by John



Hi,

Your blog contains good info. Keep it up.

# re: Consuming Webservices over HTTPS (SSL)

Monday, January 05, 2004 10:43 AM by kinsley

I've been trying to use the webservices over SSL and have also been having problems. I only get a problem when I do an iisreset and don't use the webservice straight away. If I start up another site (or if another site gets used before the webservice is called) then the webservice fails with either a proxy authentication error 407 (behind proxy on the development machine) or a "Could not establish secure channel for SSL/TLS" on the external server.
I'm using .net 1.0 sp2 with C# and I have an internal webservice calling an external webservice over SSL. The webservice works fine for the most part but it obviously a problem if it happens at all. And I've also tried creating a test certificate and getting the same error with that. Many thanks

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, January 06, 2004 11:22 AM by Jan Tielens

Mmm, I don't know what could be the problem... I suggest you post your question in the IIS or ASP.NET newsgroup.

# re: Consuming Webservices over HTTPS (SSL)

Friday, January 09, 2004 6:09 AM by Jef

Does this actually work? I have the following... but always get thrown into exception
private void Form1_Load(object sender, System.EventArgs e)
{ System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();

WebClient client = new WebClient();

try
{
Byte[] pageData = client.DownloadData("https://www.testdomain.com/");
string pageHtml = Encoding.ASCII.GetString(pageData);
textBox1.Text = pageHtml;
}

catch (WebException x)
{
textBox1.Text = "enter Webexception";
if (x.Status == WebExceptionStatus.TrustFailure)
{
textBox1.Text = "trust failure";
}
}
}

Additional information: The underlying connection was closed: Could not establish trust relationship with remote server.

# re: Consuming Webservices over HTTPS (SSL)

Thursday, January 15, 2004 10:11 AM by Brad

I have been getting a "Could not establish secure channel for SSL/TLS" error, as well. The interesting thing is that it only happens on an XP machine running the client app. I install and run the same web service client on my 2000 Pro machine with no problem. The web service is hosted on a 2000/IIS5 machine.

We are using a proxy server but both machines access the same one.

Has anyone found a solution to this? Thanks.

# re: Consuming Webservices over HTTPS (SSL)

Friday, January 16, 2004 5:09 PM by bob

I used this with a WebClient that wasn't accepting a certificate and it worked fine. Great blog!!!

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, January 21, 2004 11:05 AM by Karl Haak

Dear Jan,

thank you very much for your detailed description.

Unfortunately I am expieriencing a similar problem like kinsley. Sometimes it works sometimes not.

I have a messaging service that calls a https connection sometime 5 times in a row. Every second call fails.

I log the access of myCertPolicy in the eventlog and interessing enough it only gets a call 3x2= 6 times for 5 requests to the https service.

The certificate of the site is invalid und there is also a password to be transitted via netCredentials.

The whole Programm works fine as a console application. Once installed as a service on the same machine it doesnt work.

Dotnet 1.0 on windows 2000
KarlHaak@gmx.de

I would appreciate help on this

# re: Consuming Webservices over HTTPS (SSL)

Monday, January 26, 2004 7:53 AM by Anonymous

Jan,

Congratulations - I've read every fucking post from 100 guys who claim to know what the hell they are talking about - your solution works like a charm.

THANKYOU for posting this info. I hope other people with https+httpwebrequest problems find it.

# re: The long weekend

Wednesday, January 28, 2004 9:47 PM by TrackBack

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, February 03, 2004 1:02 PM by Josh

Do you have this code in VB somewhere? We're using VB.Net for our ASP.Net pages and I can't get a decent conversion for this

# re: Consuming Webservices over HTTPS (SSL)

Friday, February 13, 2004 8:19 AM by Karl Haak

Dear Josh,

I finally managed to solve my problem an posted a solution in VB under

http://www.dotnetforums.net/t80674.html

It handles certificate problems, user authentification, asynchron requests and a problem regarding keep alive connections.

I hope this will be of some help to you.

Karl

# re: Consuming Webservices over HTTPS (SSL)

Thursday, February 19, 2004 6:42 PM by Mark

This post was very helpful! Thanks!

# re: Consuming Webservices over HTTPS (SSL)

Saturday, February 28, 2004 2:01 PM by Larry

I have a project where a vb6 COM PC-based client is calling a webservice created in c$.net It works fine over HTTP. I've read over yours and many other postings about this topic. Your solution assumes a .NET client (I think ?) Is there a similar solution from COM?

Thanks very much,
-Larry

Dim oXMLHTTP As XMLHTTP
Dim oDOM As DOMDocument
Dim viewNodes As IXMLDOMNodeList

sB = "" & "<?xml version=""1.0"" encoding=""utf-8""?>" & _
"<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
"<soap:Body>" & _
"<TestConnection xmlns=""http://abc/pays/"">" & _
"</TestConnection>" & _
"</soap:Body>" & _
"</soap:Envelope>"

Set oXMLHTTP = New XMLHTTP
oXMLHTTP.open "POST", "https://localhost/abc/pays.asmx", False
oXMLHTTP.setRequestHeader "Host", "localhost"
oXMLHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
oXMLHTTP.setRequestHeader "SOAPAction", "http://abc/pays/TestConnection"
oXMLHTTP.setRequestHeader "Content_Length", Str(Len(sB))
oXMLHTTP.send sB

Set oDOM = oXMLHTTP.responseXML

# re: Consuming Webservices over HTTPS (SSL)

Saturday, February 28, 2004 3:17 PM by Jan

Larry, yes my solution is for .NET. I don't know how to accomplish this in VB6...

# re: Consuming Webservices over HTTPS (SSL)

Monday, March 01, 2004 12:59 PM by Andrea

I am developing a client that consumes a webservice over https.
The web server is set up to require client certificate.
how should I select the client certificate and provide it to the webservice
?

Thanks
Andrea

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, March 02, 2004 1:33 AM by Jan

You can use the ClientCertificates.Add method of the proxy class.

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, March 02, 2004 2:05 PM by ddd

ddd

# re: Consuming Webservices over HTTPS (SSL)

Thursday, March 11, 2004 5:33 PM by William Walseth

Thanks. Great example worked like a charm in .NET. There's the same thing similar way to do this in MSXML via COM.

wwalseth@ix.netcom.com

var xmlServerHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.4.0");
if( bUsingAProxy ) {
// set the proxy server name, as provided on the settings screen
xmlServerHttp.setProxy( 2, "Your Proxy Server Name", "" );
xmlServerHttp.open( strMethod, strURL, false );

// must occur after the connection is opened.
xmlServerHttp.setProxyCredentials( "proxyid", "proxypw" );
}

// NOTE: set SSL validation flags after opening, otherwise an exception is thrown...
if( bServerHTTP ) {
// if SSL, then turn off
if( strURL.search( /https:/i ) != -1 ) {
var nUnknownCA = 256;
var nWrongUsage = 512;
// requested URL does not match the certificate URL. Occurs when using a IP address instead of a name.
var nHostMismatch = 4096;

// NOTE: It appears that the numbers are documented incorrectly, invalid date is actually host mismatch!
var nInvalidDate = 8192;
var nAllErrors = 13056; // Doesn't appear to work
xmlServerHttp.setOption( 2 ) = xmlServerHttp.getOption(2) - nInvalidDate;
}
}

// 30 seconds to resolve and connect, 60 seconds to send & receive
var lResolve = 30 * 1000;
var lConnect = 30 * 1000;
var lSend = 60 * 1000;
var lReceive = 60 * 1000;
xmlServerHttp.setTimeouts(lResolve, lConnect, lSend, lReceive);

// NOTE: disable any server cache or proxy for this item
xmlServerHttp.setRequestHeader( 'cache-control', 'no-store' );

// Mimic browser form post...
xmlhttp.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );

// For SOAP and XML posting
// xmlhttp.setRequestHeader( "Content-Type", "text/xml" );

// Send the document, process any basic HTTP errors
xmlhttp.send( xml );
if( xmlhttp.status != 200 ) {
throw new Error( xmlhttp.status, "HTTP Error: " + xmlhttp.status + " " + xmlhttp.statusText );
}

if( !xmlRec.loadXML( xmlhttp.responseXML.xml ) ) {
throw new Error( xmlRec.parseError.errorCode, xmlRec.parseError.reason );
}





# re: Consuming Webservices over HTTPS (SSL)

Sunday, March 14, 2004 5:57 AM by qqq

Very good! solved my problem

# re: Consuming Webservices over HTTPS (SSL)

Thursday, March 18, 2004 5:19 PM by Niels

Yes, works like a charm! For that one webservice that you want secured but no want to pay $400 dollar for every year.

Like a charm! Thanks!

# re: Consuming Webservices over HTTPS (SSL)

Saturday, March 27, 2004 9:46 PM by Milton

With C# this work beatifull, but i need something like this in FoxPro 8, some body can help me??

# re: Consuming Webservices over HTTPS (SSL)

Friday, April 09, 2004 3:20 PM by Rico

Well anyone out their interested in a consulting job because we could sure use some help with the webservices client we have to design.

This is what I need. A form that consumes a .NET Webservice. Let me explain: We have a page with Wireless Service Providers, once an agent selects a Service Provider it will take them to another page that displays the PINs denomination choices. Once the agent chooses what PIN denomination the customer wants, it calls the webservice using the PG_GetPin procedure to request a single PIN by product SKU, the system will reply with a PIN on a confirmation page and our SQL Server 'CCS_Wireless' table is updated. The company has provided the guidelines for developing the project but I don't have a clue where to start.

Can anyone help? Supposedly, it is simple but when you have no experience it doesn't look that simple. Please email me at ceo@sc.rr.com.

Thanks for any assistance.

# re: Consuming Webservices over HTTPS (SSL)

Monday, April 12, 2004 7:33 PM by Hector

THANK YOU! This really works!
Keep up the good work!

Thanks

# re: Consuming Webservices over HTTPS (SSL)

Thursday, April 22, 2004 3:30 PM by Max

Does anyone have the solution for the C++.
pSoapClient->MSSoapInit2(
_variant_t(g_bsWSDLFile),
_T(""),
g_bsSoapService,
g_bsSoapPort,
g_bsSoapNamespace);

this call fails when g_bsWSDLFile is "https://.../.../x.jws?wsdl"

its successful when g_bsWSDLFile is "http://.../.../a.jws?wsdl"

I tried to use the ConnectorProperty of "UseSSL" but that's possible only after my initialization succeeds.

Any help is greatly appreciated. Thanks

# HowTo: WebServices via HTTPS

Friday, April 30, 2004 10:58 AM by TrackBack

# HowTo: WebServices via HTTPS

Friday, April 30, 2004 11:02 AM by TrackBack

# re: Consuming Webservices over HTTPS (SSL)

Friday, April 30, 2004 11:15 AM by Ian

We just started getting this problem talking to a partners webservice.

We had a problem with our own webservice with keep-alives - where load balancers would interfere with the keepalive and hose the connection.

Could this be another form of the keepalive problem?

# re: Consuming Webservices over HTTPS (SSL)

Monday, May 10, 2004 9:44 AM by Thore

Hi all!

I'd like to solve exactly the same problem. But whatever I try it doesn't work.

I am trying to read a webpage using the HttpWebRequest methods. When the URL is not secured (http://) it works fine, using the HTTPS protocol I get the

"The underlying connection was closed: Could not establish trust relationship with remote server."

error.

I implemented the class TrustAllCertificatePolicy like shown here. But also this did not help... Is there anyone with another idea?



# re: Consuming Webservices over HTTPS (SSL)

Friday, May 14, 2004 10:17 AM by Dan

I have a problem when trying to using:

xmlhttp.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );

If I try to attach a french character ie ç. The server can't seem to understand it.

Please Help!

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, June 01, 2004 10:45 AM by Laurent

The web server is set up to require client certificate.
How should I select the client certificate and provide it to the webservice ?

With C# ou VB.NET this work beatifull, but i need something like this in FoxPro 6 or 8 or VB6 , some body can help me please??

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, June 02, 2004 4:23 PM by Manish

To: Jan (the blog owner)

Thanks a ton!!!

Your solution saved my a**!
For the last 2 days, I have been banging my head against the wall and my problem was "exactly" the same as the post attempts to solve. This was a perfect, natural fit for my problem.

As soon as I implemented the ICertificatePolicy interface and used the ServicePointManager class, the certificate issue went away. None of this is easy to glean from the MSDN documentation.

I am sure that even a couple years from now, there will be folks who will find this info. useful.

Thanks again.

# Consuming , adding webreference to Webservices over HTTPS (SSL)

Thursday, June 10, 2004 1:10 AM by Ramki

I could not all a web reference using Visual Studio.NET to a webservice running in SSL. Iam getting an error stating
"The proxy settings on this computer are not configured correctly for web discovery. Click the Help button for more information."

Can someone tell me the steps for adding webreference a Webservice running in SSL.

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, June 22, 2004 10:26 AM by stewart bourke

I have added the following class to my code for consuming a webservice (I added it to the form1.cs). I
want to be able to accept all certificates for testing etc..

public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy
{
public TrustAllCertificatePolicy()
{}

public bool CheckValidationResult(ServicePoint sp,
X509Certificate cert,WebRequest req, int problem)
{
return true;
}
}

However, when I try to build the application, I get the build error:

'TrustAllCertificatePolicy' does not implement interface member
'System.Net.ICertificatePolicy.CheckValidationResult(System.Net.ServicePoint
, System.Security.Cryptography.X509Certificates.X509Certificate,
System.Net.WebRequest, int)'

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 12, 2004 10:59 PM by Jerry Shea

thanks very much for the tip, Jan

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 13, 2004 1:27 PM by Patricio

Hello everybody

i have the following code to access an application via https:

---------------------------------------------
System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();

httpWebRequest = (HttpWebRequest)WebRequest.Create(url);

X509Certificate cer = X509Certificate.CreateFromCertFile(@"c:\CertificadoCliente.cer");

httpWebRequest.ClientCertificates.Add(cer);
httpWebRequest.Method = "POST";
httpWebRequest.ContentLength = stringPost.Length;

streamWriter = new StreamWriter(httpWebRequest.GetRequestStream());

streamWriter.Write(stringPost);
streamWriter.Close();

HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream());
respuesta = streamReader.ReadToEnd();
streamReader.Close();
---------------------------------------------

Although the connection is created (i think the certificates are correctly installed), i got an exception when i try to close the streamWriter:

"Cannot access a disposed object named \"System.Net.TlsStream\"."

As you can see i have created the TrustAllCertificatePolicy class, but i still get that exception. Could anyone help me?

Thanks in advance. Patricio.

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 13, 2004 7:16 PM by .Net Newb

Very helpful. Thanks so much!

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 15, 2004 5:50 AM by Patricio

I have found the solution by myself, the problem was that i have the client certificate installed only for the machine account. I have also installed it for the current user and now all it´s working fine.

Thanks a lot.

Patricio

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 19, 2004 1:21 AM by starky

??!thanks!

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 06, 2004 2:19 PM by Asaf

Hi,

When using "System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();"

Is there a need to call to CheckValidationResult function? If yes where in the code? Because there is no call to this function from your example.

Does it works for SSL HTTP POST?

Thanks,
Asaf

# It does not work!

Friday, August 06, 2004 2:54 PM by Asaf

Hi,

When doing HTTP POST to SSL I a getting
Cannot access a disposed object named "System.Net.TlsStream".
Object name: "System.Net.TlsStream".

Is there a way to solve this?

Asaf

# Consuming Webservices over HTTPS (SSL)

Wednesday, December 01, 2004 4:08 AM by TrackBack

# HowTo: WebServices via HTTPS

Friday, January 14, 2005 6:11 PM by TrackBack

# re: Consuming Webservices over HTTPS (SSL)

Thursday, May 25, 2006 7:33 AM by Moritz

Thanks, for this information! It was very helpful!

Here's the .NET 2.0 version:

       public static bool TrustAllCertificateCallback(object sender,
           X509Certificate cert, X509Chain chain, SslPolicyErrors errors)
       {
           return true;
       }

The following line needs to be called once before the web service is accessed (for example in main or the constructor of your main object):
           ServicePointManager.ServerCertificateValidationCallback = TrustAllCertificateCallback;

# re: Consuming Webservices over HTTPS (SSL)

Monday, May 29, 2006 10:51 AM by guostong

It works in management envirorment, but how to handle it in umanagement envirorment with c++

# re: Consuming Webservices over HTTPS (SSL)

Monday, June 05, 2006 8:43 AM by shivaraj

Dear All,

Please tell me .. what should i pass for

sp,cert,req and problem in

public bool CheckValidationResult(ServicePoint sp,
X509Certificate cert,WebRequest req, int problem)

regards,

shivaraj

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, June 07, 2006 4:19 PM by Ramond

hi, after "System.Net.ServicePointManager.CertificatePolicy = New MyCertificateValidation" (i am using vb.net2003), do i need to call the function CheckValidationResult()?
If yes, what are the actual parameters to pass?

I am still the error

[EntryPointNotFoundException: ?]
  System.Net.NativeNTSSPI.EnumerateSecurityPackagesW(Int32& pkgnum, IntPtr& arrayptr) +0
  System.Net.SSPISecureChannelType.EnumerateSecurityPackages(Int32& pkgnum, IntPtr& arrayptr)
  System.Net.SSPIWrapper.EnumerateSecurityPackages(SSPIInterface SecModule)
  System.Net.SSPIWrapper.GetSupportedSecurityPackages(SSPIInterface SecModule)
  System.Net.SecureChannel..cctor()

[TypeInitializationException: The type initializer for "System.Net.SecureChannel" threw an exception.]
  System.Net.SecureChannel..ctor(String hostname, X509CertificateCollection clientCertificates) +0
  System.Net.TlsStream.Handshake(ProtocolToken message)

[WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS.]
  System.Net.HttpWebRequest.CheckFinalStatus()
  System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
  System.Net.HttpWebRequest.GetRequestStream()
  System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
  TP.CisMis.Opal.Web.ProvideLetterProxy.ProvideLetter.MyInitialize(String a, String b, String c, String d, String e) in C:\_MyDocs\Opal\OpalSoln\Web\Web References\ProvideLetterProxy\Reference.vb:83
  TP.CisMis.Opal.Web.Login.btnSignIn_Click(Object sender, EventArgs e) in C:\_MyDocs\Opal\OpalSoln\Web\Login.aspx.vb:114
  System.Web.UI.WebControls.Button.OnClick(EventArgs e)
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  System.Web.UI.Page.ProcessRequestMain()

# WebServices su HTTPS

Sunday, June 11, 2006 7:25 PM by Crad's .NET Blog

# re: Consuming Webservices over HTTPS (SSL)

Monday, June 12, 2006 9:04 AM by Rick

Thanks for a very useful post.

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, June 21, 2006 5:23 AM by Jorge

Moritz, do you have any idea of how to do the same in .NET Compact Framework 2.0?
In CF 2.0 the property CertificatePolicy of ServicePointManager is obsolete, and the ServerCertificateValidationCallback is supported in .NET Framework 2.0 but not in .NET Compact Framework 2.0.

Any idea of how resolve the problem?

Thanks in advance.
Jorge.

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, June 21, 2006 7:39 PM by Dave

Thank you.  Both the original version of the code in the post and the .NET 2.0 version work great.  I am supporting both .NET 2003 and .NET 2005 so I needed both.

# re: Consuming Webservices over HTTPS (SSL)

Monday, June 26, 2006 5:54 AM by Tim

Your post proved very useful.

Thanks!

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, June 27, 2006 5:34 AM by Subhadip

How to call
public bool CheckValidationResult(System.Net.ServicePoint srvPoint, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Net.WebRequest request, int certificateProblem) ?
How and what to pass as srvPoint, certificate, request, certificateProblem?
Please inform on this

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 04, 2006 8:06 AM by dirt cheap tickets

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 05, 2006 12:50 AM by ativan

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 05, 2006 9:32 AM by dirt cheap tickets

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 06, 2006 12:31 PM by Andrew

Hi, I've tried this and it does seem to remove the webexception about server trust as mentioned, except I now get something new, it now returns:

System.Net.WebException: The request failed with the error message: -- <HTML><BODY>Redirecting...</BODY></HTML>

Any ideas?

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 07, 2006 5:16 AM by Moeseev

MIR, TRUD, MAY!!!:

<a href=" http://handbag-prada.cq.bz/ ">handbag prada</a> Nice site [url=http://handbag-prada.cq.bz/]handbag prada[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 07, 2006 5:45 AM by Lebedev

Fine site of ladies' handbags.

<a href=" http://coach-handbag.coz.in/ ">coach handbag</a> ckick here [url=http://coach-handbag.coz.in/]coach handbag[/url]

Visit it and buy a ladies' bag

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 07, 2006 1:52 PM by Gref

MIR, TRUD, MAY!!!:

<a href=" http://handbag-prada.cq.bz/ ">handbag prada</a> Nice site [url=http://handbag-prada.cq.bz/]handbag prada[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 07, 2006 5:57 PM by cheap flight

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 07, 2006 5:58 PM by cheap airline tickets

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 08, 2006 4:37 AM by cheap airfare

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 08, 2006 5:35 AM by Pugacheva

Fine site of ladies' handbags.

<a href=" http://coach-handbag.coz.in/ ">coach handbag</a> ckick here [url=http://coach-handbag.coz.in/]coach handbag[/url]

Visit it and buy a ladies' bag

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 08, 2006 2:22 PM by dirt cheap airline tickets

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 08, 2006 2:47 PM by cheep tickets

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 08, 2006 6:17 PM by flight las vegas

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 08, 2006 6:17 PM by cheap ticket

# re: Consuming Webservices over HTTPS (SSL)

Sunday, July 09, 2006 2:35 PM by cheap tickets russia

# re: Consuming Webservices over HTTPS (SSL)

Sunday, July 09, 2006 2:36 PM by cheap airfare

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 10, 2006 6:57 AM by vicodin

http://buyvicodin.coz.in

<a href="http://buyvicodin.coz.in">buy vicodin</a>

[url=http://buyvicodin.coz.in]buy vicodin[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 10, 2006 8:36 AM by hydrocodone

http://buy-hydrocodone.coz.in

<a href="http://buy-hydrocodone.coz.in">buy hydrocodone</a>

[url=http://buy-hydrocodone.coz.in]buy hydrocodone[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 10, 2006 11:30 AM by cheap flight

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 10, 2006 6:32 PM by Zhirinovskiy

Fine site of ladies' handbags.

<a href=" http://coach-handbag.coz.in/ ">coach handbag</a> ckick here [url=http://coach-handbag.coz.in/]coach handbag[/url]

Visit it and buy a ladies' bag

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 11, 2006 3:58 AM by handbag

<a href="http://replica-handbag.coz.in">replica">http://replica-handbag.coz.in">replica handbag</a>

[url=http://replica-handbag.coz.in]replica handbag[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 15, 2006 3:08 AM by sunglasses

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 15, 2006 6:06 PM by Yavlinskiy

Fine site of ladies' handbags.

<a href=" http://coach-handbag.coz.in/ ">coach handbag</a> ckick here [url=http://coach-handbag.coz.in/]coach handbag[/url]

Visit it and buy a ladies' bag

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 18, 2006 9:03 AM by cheap ticket

< a href=" http://cheap-ticket-2007.blogspot.com/ ">cheap ticket</a>

[url=http://cheap-ticket-2007.blogspot.com/]cheap ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 19, 2006 5:49 AM by ticket

<a href=" http://ticket2007.blogspot.com/ ">cheap ticket</a>

[url=http://ticket2007.blogspot.com/]cheap ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 19, 2006 12:59 PM by cheap ticket

<a href=" http://cheap-ticket-2007.blogspot.com/ ">cheap ticket</a>

[url=http://cheap-ticket-2007.blogspot.com/]cheap ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 21, 2006 4:38 AM by Xrenopas

Hi piple!!!

<a href=" http://discount-stock-brokers.blogspot.com ">discount stock brokers</a>

[url=http://discount-stock-brokers.blogspot.com]discount stock brokers[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 21, 2006 8:46 PM by Moeseev

MIR, TRUD, MAY!!!:

[url=http://air-buy-cheap-ticket.blogspot.com/]cheap ticket[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 21, 2006 9:54 PM by Kirkorov

MIR, TRUD, MAY!!!:

<a href=" http://air-buy-cheap-ticket.blogspot.com/ ">cheap ticket</a>

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 22, 2006 3:48 AM by Malka

amgits !!!

<a href=" http://stock-broker-i.blogspot.com ">stock broker</a>

[url=http://stock-broker-i.blogspot.com]stock broker[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 22, 2006 9:20 AM by cheap ticket

<a href=" http://cheap-airfare-2007.blogspot.com/ ">cheap airfare</a>

[url=href=" http://cheap-airfare-2007.blogspot.com/]cheap airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 22, 2006 10:14 AM by cheap ticket

<a href=" http://cheap-airfare-2007.blogspot.com/ ">cheap airfare</a>

[url=href=" http://cheap-airfare-2007.blogspot.com/]cheap airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 22, 2006 1:14 PM by Sipalsik

amgit hi hi hi !!!

<a href=" http://cheap-ticket-8.blogspot.com ">cheap ticket</a>

[url=http://cheap-ticket-8.blogspot.com]cheap ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 22, 2006 8:22 PM by Moeseev

MIR, TRUD, MAY!!!:

[url=http://air-buy-cheap-ticket.blogspot.com/]cheap ticket[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Saturday, July 22, 2006 9:17 PM by Putin

MIR, TRUD, MAY!!!:

<a href=" http://air-buy-cheap-ticket.blogspot.com/ ">cheap ticket</a>

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Sunday, July 23, 2006 6:28 AM by Gridas

jhui =)

<a href=" http://stock-brokers.blogspot.com ">stock brokers</a>

[url=http://stock-brokers.blogspot.com]stock brokers[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, July 23, 2006 8:43 PM by Pugacheva

MIR, TRUD, MAY!!!:

[url=http://air-buy-cheap-ticket.blogspot.com/]cheap ticket[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Sunday, July 23, 2006 9:20 PM by Aboltus

GHello1!

<a href=" http://cheap-airfare-2007.blogspot.com ">cheap airfare</a>

[url=href=" http://cheap-airfare-2007.blogspot.com]cheap airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, July 23, 2006 9:37 PM by Gref

MIR, TRUD, MAY!!!:

<a href=" http://air-buy-cheap-ticket.blogspot.com/ ">cheap ticket</a>

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 24, 2006 2:13 PM by cheap-air

<a href=" http://cheap-air-ticket.ueuo.com/ ">cheap air ticket</a>

[url=http://cheap-air-ticket.ueuo.com/]cheap air ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 24, 2006 4:34 PM by smarkkk

<a href=" http://ford-mustang-2oo7.blogspot.com ">ford mustang</a>

[url=http://ford-mustang-2oo7.blogspot.com]ford mustang[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 24, 2006 8:52 PM by Yabloko

MIR, TRUD, MAY!!!:

[url=http://air-buy-cheap-ticket.blogspot.com/]cheap ticket[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 25, 2006 5:02 AM by cheap-air

<a href=" http://cheap-air-ticket.ueuo.com/ ">cheap air ticket</a>

[url=http://cheap-air-ticket.ueuo.com/]cheap air ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, July 25, 2006 5:59 PM by cheap ticket

<a href=" http://cheap-airline-ticket-2007.blogspot.com/ ">cheap airline ticket</a>

[url=http://cheap-airline-ticket-2007.blogspot.com/]cheap airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 26, 2006 7:21 AM by lolita

<a href=" http://online-credit-card-approval-2ooo7.blogspot.com ">online credit card approval</a>

[url=http://online-credit-card-approval-2ooo7.blogspot.com]online credit card approval[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 26, 2006 7:52 PM by Putin

MIR, TRUD, MAY!!!:

<a href=" http://air-buy-cheap-ticket.blogspot.com/ ">cheap ticket</a>

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 26, 2006 8:34 PM by Putin

MIR, TRUD, MAY!!!:

[url=http://air-buy-cheap-ticket.blogspot.com/]cheap ticket[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 27, 2006 9:47 AM by cheap-flight

<a href=" http://cheap-flight.xcx.pl/ ">cheap flight</a>

[url=http://cheap-flight.xcx.pl/]cheap flight[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 27, 2006 10:34 AM by online betting

<a href=" http://online-betting-888.blogspot.com/ ">online betting</a>

[url=http://online-betting-888.blogspot.com/]online betting[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 27, 2006 11:16 AM by cheap-flight

<a href=" http://cheap-flight.xcx.pl/ ">cheap flight</a>

[url=http://cheap-flight.xcx.pl/]cheap flight[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 27, 2006 4:59 PM by credit

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 27, 2006 9:08 PM by Bush

MIR, TRUD, MAY!!!:

<a href=" http://air-buy-cheap-ticket.blogspot.com/ ">cheap ticket</a>

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Thursday, July 27, 2006 10:13 PM by Moeseev

MIR, TRUD, MAY!!!:

[url=http://air-buy-cheap-ticket.blogspot.com/]cheap ticket[/url]

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 28, 2006 6:08 PM by Onlinekredit

onlinekredit

<a href=" http://onlinekredit-2007.blogspot.com/ ">onlinekredit</a>

[url=http://onlinekredit-2007.blogspot.com/]onlinekredit[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 28, 2006 9:17 PM by Kirkorov

MIR, TRUD, MAY!!!:

<a href=" http://air-buy-cheap-ticket.blogspot.com/ ">cheap ticket</a>

Davayte zshit' druzshno

# re: Consuming Webservices over HTTPS (SSL)

Monday, July 31, 2006 4:28 PM by fred

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, August 01, 2006 6:42 AM by cheap airfare

<a href=" http://cheap-5-airfare.blogspot.com/ ">cheap airfare</a>

[url=http://cheap-5-airfare.blogspot.com/]cheap airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, August 01, 2006 4:34 PM by cheap--ticket

<a href=" http://cheap--tickets.blogspot.com/ ">cheap ticket</a>

[url=http://cheap--tickets.blogspot.com/]cheap ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 02, 2006 5:53 AM by cheap airfare

<a href=" http://cheapairfare.jconserv.net/ ">cheap airfare</a>

[url=http://cheapairfare.jconserv.net/]cheap airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 02, 2006 4:57 PM by Last

Hi pipli! =)

<a href=" http://last-minute-airfare-2007.blogspot.com ">last minute airfare</a>

[url=http://last-minute-airfare-2007.blogspot.com]last minute airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 02, 2006 5:49 PM by Airline666

Hi pili! =)))

<a href=" http://airline-ticket-2007.blogspot.com ">airline ticket</a>

[url=http://airline-ticket-2007.blogspot.com]airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 03, 2006 4:02 AM by Medved

Medved! =)

<a href=" http://game-cheats-for-ps2-i.blogspot.com ">airline ticket</a>

[url=http://game-cheats-for-ps2-i.blogspot.com]airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 03, 2006 2:42 PM by hydrocodone

<a href=" hydrocodone.blog.naszemiasto.pl ">hydrocodone</a>

[url= hydrocodone.blog.naszemiasto.pl]hydrocodone[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 03, 2006 10:46 PM by Nochnik

Vsem spat`!

<a href=" http://enterprise-rental-car.blogspot.com ">enterprise rental car</a>

[url=http://enterprise-rental-car.blogspot.com]enterprise rental car[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 04, 2006 10:13 AM by hydrocodone

<a href=" http://hydrocodone.blog.naszemiasto.pl ">hydrocodone</a>

[url= http://hydrocodone.blog.naszemiasto.pl]hydrocodone[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 04, 2006 10:38 AM by lowest-airfares

<a href=" http://lowest-airfares-2007.blogspot.com ">lowest airfares</a>

[url=http://lowest-airfares-2007.blogspot.com]lowest airfares[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 04, 2006 5:57 PM by cheap-airfares

<a href=" http://lowest-cheap-airfares.blogspot.com ">lowest cheap airfares</a>

[url=http://lowest-cheap-airfares.blogspot.com]lowest cheap airfares[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 04, 2006 8:59 PM by mortgage

<a href=" http://mortgage-refinance-a.blogspot.com ">mortgage refinance</a>

[url= http://mortgage-refinance-a.blogspot.com ]mortgage refinance[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 04, 2006 11:47 PM by airfare

<a href=" http://airfare-2007.blogspot.com ">airfare</a>

[url=http://airfare-2007.blogspot.com]airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 06, 2006 6:55 AM by mortgage

<a href=" http://california-mortgage-a.blogspot.com ">california mortgage</a>

[url= http://california-mortgage-a.blogspot.com ]california mortgage[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 06, 2006 1:34 PM by SEO

<a href=" http://enterprise-rent-a-car.blogspot.com ">enterprise rent a car</a>

[url=http://enterprise-rent-a-car.blogspot.com]enterprise rent a car[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 07, 2006 12:35 PM by lowest-airfare

<a href=" http://lowest-airfare-2007.blogspot.com ">lowest airfare</a>

[url=http://lowest-airfare-2007.blogspot.com]lowest airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 09, 2006 4:49 PM by RandomSolutions

For the record, this is how you do it in .Net 2.0

   Private callback As New System.Net.Security.RemoteCertificateValidationCallback(AddressOf RemoteCertificateValidationCallback)

   Private Function RemoteCertificateValidationCallback(ByVal sender As Object, ByVal cert As System.Security.Cryptography.X509Certificates.X509Certificate, ByVal chain As System.Security.Cryptography.X509Certificates.X509Chain, ByVal sslPolicyErrors As System.Net.Security.SslPolicyErrors) As Boolean

       Return True

   End Function

System.Net.ServicePointManager.ServerCertificateValidationCallback = callback

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 11, 2006 8:48 PM by refinancea

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 4:55 AM by ticketnew

<a href=" http://cheapticketnew.blogspot.com ">cheap ticket</a>

[url=http://cheapticketnew.blogspot.com]cheap ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 12:51 PM by cketnew

<a href=" http://cheapairfareticketnew.blogspot.com ">cheap airfare ticket</a>

[url=http://cheapairfareticketnew.blogspot.com]cheap airfare ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 12:57 PM by apairticket

<a href=" http://cheapairticketnew.blogspot.com ">cheap air ticket</a>

[url=http://cheapairticketnew.blogspot.com]cheap air ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 1:02 PM by irfare

<a href=" http://cheapairfarenew.blogspot.com ">cheap airfare</a>

[url=http://cheapairfarenew.blogspot.com]cheap airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 6:10 PM by Manish

Thanks that helps. Just a note that in .NET 2.0 System.Net.ServicePointManager.CertificatePolicy is obsolete and instead, you are expected to define the ServicePointManager.ServerCertificateValidationCallback callback method to do the same thing. This callback has the same signature as ICertificatePolicy.CheckValidationResult, but with the use of parameter-less anonymous methods, you can simply do the following to achieve the same result:

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 7:39 PM by smark

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 9:14 PM by really

<a href=" http://reallycheapairlineticketnew.blogspot.com/ ">really cheap airline ticket</a>

[url=http://reallycheapairlineticketnew.blogspot.com/]really cheap airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 12, 2006 9:22 PM by inter

<a href=" http://cheapinternationalairfarenew.blogspot.com ">cheap international airfare</a>

[url=http://cheapinternationalairfarenew.blogspot.com]cheap international airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 13, 2006 5:19 AM by Ticket

The best - DISCOUNT AIRLINE TICKET!!!!!

<a href=" http://discount-airline-ticket-2007.blogspot.com ">discount airline ticket</a>

[url=http://discount-airline-ticket-2007.blogspot.com]discount airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 13, 2006 10:14 AM by rfaresnew

<a href=" http://airfaresnew.blogspot.com/ ">air fares</a>

[url=http://airfaresnew.blogspot.com/]air fares[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 13, 2006 10:18 AM by Kukanistka

The best - DISCOUNT AIRLINE TICKET!!!!!

<a href=" http://discount-airline-ticket-2007.blogspot.com ">discount airline ticket</a>

[url=http://discount-airline-ticket-2007.blogspot.com]discount airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 13, 2006 10:41 AM by florida

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 14, 2006 5:48 AM by cheap airfares

<a href=" http://cheapairfaresnew.blogspot.com/ ">cheap airfares</a>

[url=http://cheapairfaresnew.blogspot.com/]cheap airfares[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 16, 2006 9:21 AM by airline-disco

<a href=" http://airline-discount-tickets.blogspot.com ">airline discount tickets</a>

[url=http://airline-discount-tickets.blogspot.com]airline discount tickets[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 16, 2006 9:30 AM by ket-2

<a href=" http://discount-airline-ticket-2007.blogspot.com ">discount airline ticket</a>

[url=http://discount-airline-ticket-2007.blogspot.com]discount airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 16, 2006 10:48 PM by wangyong

This post was very helpful! Thank you very much!

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 17, 2006 8:20 AM by Rony

Hi,

I am trying to download a file from ssl protected link , with WebRequest.

I tried to use your class but the stream that i am geting is empty.

Can you tell me please if i am doing something wrong?

The Code :

ServicePointManager.CertificatePolicy = new  TrustAllCertificatePolicy();

HttpWebRequest webRequest1 = WebRequest.Create(d) as HttpWebRequest;

webRequest1.KeepAlive = true;

webRequest1.CookieContainer = cookies;

webRequest1.Accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";

webRequest1.Headers.Set("Accept-Language", "en-us,en;q=0.5");

webRequest1.Headers.Set("Accept-Encoding", "gzip,deflate");

webRequest1.Headers.Set("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7");

webRequest1.Headers.Set("Keep-Alive", "300");

WebResponse myResponse1 = webRequest1.GetResponse();

Stream ReceiveStream1 = myResponse1.GetResponseStream();

SaveStreamToFile(@"C:\file.csv", ReceiveStream1);

Thanks,Rony

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 17, 2006 8:32 PM by cheapflightti

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 18, 2006 10:49 AM by ideeffects

<a href=" http://hoodiasideeffectsnow.blogspot.com/ ">hoodia side effects</a>

[url=http://hoodiasideeffectsnow.blogspot.com/]hoodia side effects[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, August 18, 2006 8:07 PM by polina

[url=http://cheap-plane-ticket2ooo7.blogspot.com]>cheap plane ticket[/url]

<a href=" http://cheap-plane-ticket2ooo7.blogspot.com ">cheap plane ticket</a>

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 19, 2006 6:16 AM by cheaps

<a href=" http://cheap-plane-ticket-aa.blogspot.com ">plane ticket</a>[url= http://cheap-plane-ticket-aa.blogspot.com ]plane ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 19, 2006 11:20 AM by airfaret

<a href=" http://airfaretravel.blogspot.com ">airfare</a>

[url=http://airfaretravel.blogspot.com]airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 19, 2006 5:12 PM by cheaps

<a href=" http://cheap-plane-ticket-aa.blogspot.com ">plane ticket</a>[url= http://cheap-plane-ticket-aa.blogspot.com ]plane ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 20, 2006 6:27 AM by air tiket

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 20, 2006 6:53 AM by cheaps

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 20, 2006 10:36 AM by home equity

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 20, 2006 11:12 AM by home equity

# re: Consuming Webservices over HTTPS (SSL)

Sunday, August 20, 2006 8:09 PM by home equity

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 21, 2006 6:11 AM by airline ticket

<a href=" http://cheap-airline-ticketsa.blogspot.com ">airline ticket</a>[url= http://cheap-airline-ticketsa.blogspot.com ]airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 21, 2006 7:48 AM by Pilisal

Cool site!

<a href=" http://dietpillx.blogspot.com ">diet pill</a>

[url=http://dietpillx.blogspot.com]diet pill[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 21, 2006 7:54 AM by Britharma

Nice web page! ;)

<a href=" http://birthcontrolpillx.blogspot.com ">birth control pill</a>

[url=http://birthcontrolpillx.blogspot.com]birth control pill[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 21, 2006 11:32 AM by airline ticket

<a href=" http://cheap-airline-ticketsa.blogspot.com ">airline ticket</a>[url= http://cheap-airline-ticketsa.blogspot.com ]airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, August 22, 2006 2:54 AM by Diskouna

The best airfare!

<a href=" http://discount-airfare-n.blogspot.com ">discount airfare</a>

[url=http://discount-airfare-n.blogspot.com]discount airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, August 22, 2006 12:15 PM by airfares

<a href=" http://lowest-airfare-new.blogspot.com ">lowest airfare</a>

[url=http://lowest-airfare-new.blogspot.com]lowest airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 23, 2006 5:03 AM by brazilflight

<a href=" http://brazilflighthot.blogspot.com ">brazil flight</a>

[url=http://brazilflighthot.blogspot.com]brazil flight[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 23, 2006 6:42 AM by airplane ticket

<a href=" http://cheap-airplane-ticketss.blogspot.com ">airplane ticket</a>[url= http://cheap-airplane-ticketss.blogspot.com ]airplane ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 23, 2006 7:19 AM by airplane ticket

<a href=" http://cheap-airplane-ticketss.blogspot.com ">airplane ticket</a>[url= http://cheap-airplane-ticketss.blogspot.com ]airplane ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 23, 2006 10:42 AM by really ticket

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 23, 2006 2:32 PM by international ticket

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 24, 2006 2:48 PM by countairf

<a href=" http://discountairfarehot.blogspot.com ">discount airfare</a>

[url=http://discountairfarehot.blogspot.com]discount airfare[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 24, 2006 2:54 PM by ightsjapanh

<a href=" http://flightsjapanhot.blogspot.com ">flights japan</a>

[url=http://flightsjapanhot.blogspot.com]flights japan[/url]

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 26, 2006 3:58 PM by Vera

<a href=" http://new-order-bride-a.blogspot.com ">order bride</a>[url= http://new-order-bride-a.blogspot.com ]order bride[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 28, 2006 12:34 AM by fares

<a href=" http://airfaresw.blogspot.com ">air fares</a>

[url=http://airfaresw.blogspot.com]air fares[/url]

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 28, 2006 12:50 AM by airline

<a href=" http://cheapairlinetickete.blogspot.com ">cheap airline ticket</a>

[url=http://cheapairlinetickete.blogspot.com]cheap airline ticket[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 30, 2006 2:14 AM by Kitchen

Good! =)

<a href=" http://kitchen-islands.blogspot.com ">kitchen islands</a>

[url=http://kitchen-islands.blogspot.com]kitchen islands[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 30, 2006 12:38 PM by flight

<a href=" http://cheapflightsss.blogspot.com ">cheap flight</a>

[url=http://cheapflightsss.blogspot.com]cheap flight[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 30, 2006 12:40 PM by cheapfl

<a href=" http://cheapflighthot.blogspot.com ">cheap flight</a>

[url=http://cheapflighthot.blogspot.com]cheap flight[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 30, 2006 6:41 PM by line

<a href=" http://homeequitylineofcredithot.blogspot.com ">home equity line of credit</a>

[url=http://homeequitylineofcredithot.blogspot.com]home equity line of credit[/url]

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, August 30, 2006 6:43 PM by line

<a href=" http://homeequitylineofcredithot.blogspot.com ">home equity line of credit</a>

[url=http://homeequitylineofcredithot.blogspot.com]home equity line of credit[/url]

# re: Consuming Webservices over HTTPS (SSL)

Thursday, August 31, 2006 8:45 AM by faucets

<a href=" http://kitchen-faucetsn.blogspot.com ">kitchen faucets</a>

[url=http://kitchen-faucetsn.blogspot.com]kitchen faucets[/url]

# re: Consuming Webservices over HTTPS (SSL)

Friday, September 08, 2006 10:29 AM by wolftooth

Thanks very much ! 非常感谢!

# re: Consuming Webservices over HTTPS (SSL)

Friday, September 22, 2006 5:19 AM by Jojer

Best site - <a href="http://car-alarm.7u1g56.com">Car Alarm</a>

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, September 27, 2006 4:53 PM by Kwang

works great. Thanks~

# re: Consuming Webservices over HTTPS (SSL)

Thursday, September 28, 2006 6:37 AM by Mahesh Sase

Hey, Great work man...

I just copied it and it worked !

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, October 11, 2006 2:15 PM by accounting

Take care of it and keep it on the road!

# re: Consuming Webservices over HTTPS (SSL)

Monday, October 16, 2006 9:31 AM by uschi

works great ... thanks 4 solving that problem

# re: Consuming Webservices over HTTPS (SSL)

Thursday, November 09, 2006 8:27 PM by John

Manish was right.   A few years later and this blog post is still helping.

Thanks Jan.  It really did work.

And besides, you can do you're own code inside of the CheckValidationResult method, instead of simply returning 'True'.

# re: Consuming Webservices over HTTPS (SSL)

Friday, November 10, 2006 8:58 AM by burrist

The posted code works great, my question is about selecting the ClientCertificate that should be put into the request.  I have a windows application that uses many Web Services that use SSL. Is there a way i can make the Internet Explorer Certificate selection box popup so the user can choose the certificate they want to use?  I wrote my own dialog box which shows all the certificates in the user's Personal store, and they can choose which one to use from that.  The problem with my own dialog box is that, unlike IE, I don't know how to filter out which certificates are not valid based on the certificate the server is using.  So my dialog box might have 4 Certificates listed in it, but only 2 will work for the server.  I don't know what logic IE uses to eliminate the others.  I would have thought that the server Cert and the client cert would have to have identical CA's but that does not appear to be the case.  So I either need the logic that should be used, or more preferably, i'd like to show the dialog box that IE shows so that they can select their cert from there. can you help?

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, November 14, 2006 1:18 AM by sachin

I am getting the problem when i add follwing node in web.config file

<system.net>

<defaultProxy>

<proxy

usesystemdefault = "false"

proxyaddress="https://localhost:9000"

bypassonlocal="false"

/>

</defaultProxy>

</system.net>

after running the appliction i get follwing error

The ServicePointManager does not support proxies of https scheme.

plz help me

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, November 29, 2006 9:39 AM by Allan Walker

This is an excellent tip.  In Novemebr 2006 the Microsoft documentation on this subject is as obtuse as ever, and this solved my problem.  Thanks a lot!

# re: Consuming Webservices over HTTPS (SSL)

Monday, January 08, 2007 12:34 AM by Rick Knight

Thanks heaps, - just what I was looking for :)

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, January 24, 2007 1:16 PM by bob

# re: Consuming Webservices over HTTPS (SSL)

Thursday, January 25, 2007 11:55 AM by Michael Knudsen

1000 Thanks. This was just what I was searching for

# re: Consuming Webservices over HTTPS (SSL)

Thursday, February 01, 2007 2:54 PM by Rizwan Merchant.

Thanks a lot. This was a good solution to the problems we faced.

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, February 07, 2007 6:13 AM by Lifesaver

This certificatePolicy overriding was such a lifesaver here at the corp. Thanks a zillion!

Jorge Silva,

PG Stream.

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, February 13, 2007 5:16 PM by aku@zenona.net

Happy bear wanna fear

# re: Consuming Webservices over HTTPS (SSL)

Friday, February 16, 2007 4:53 PM by xfs

This solution works for comsuming a webservice hosted on an SSL-enabled server. But, what if the server is FIPS enabled (from the local security policy). I've searched each nook & cranny on Microsoft and can't find an ounce of documentation on how to deploy a webservice on a FIPS compliant webserver (win2k3).

# re: Consuming Webservices over HTTPS (SSL)

Monday, February 19, 2007 1:37 PM by Srareer

Hello! This cool site: <a href=" http://apple1stock1.blogspot.com ">apple stock</a> Click here please.

# re: Consuming Webservices over HTTPS (SSL)

Monday, February 19, 2007 9:31 PM by stock

<a href=" http://book-fortune-make1market1stock.blogspot.com ">book fortune make market stock</a>

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, February 20, 2007 10:15 AM by Fred

<a href=" http://buy2stock.blogspot.com ">buy stock</a>

# re: Consuming Webservices over HTTPS (SSL)

Thursday, February 22, 2007 3:13 PM by Gardner Roe

Implemented this with no problems... Thanks!  

I encountered this problem when working with a 3rd party dev environment and conditionally set the certificate policy based on the #if DEBUG directive so I wouldn't have to worry about it when moving to production.

I appreciate the tip!

- g  

# re: Consuming Webservices over HTTPS (SSL)

Friday, February 23, 2007 8:48 AM by Virendra Jhala

Hi,

I am facing a problem with SSL on my website. My solution is divided in three part. 1. One web application and 2. Two Web Services(Business and Data web services).

Webapplication is hosted on one machine and two web services are hosted on another machine.

I installed the certificate on the Web Application machine only.

When I am browsing my website I am getting follwing exception in my log file but my pages are displayed properly without any problem.

"the underlying connection was closed. could not establish trust relationship for the SLL/TLS secure channel"

Can anyone help me?

Regards,

Virendra Jhala

# re: Consuming Webservices over HTTPS (SSL)

Sunday, February 25, 2007 8:09 PM by ow@newyear.com

Brunettes vs blondies, who is more clever?

# re: Consuming Webservices over HTTPS (SSL)

Monday, February 26, 2007 10:18 PM by Reno

Hi,

I am trying to create a class (which accepts all certs) like so in VB.NET:

Public Class CertificatePolicy

   Implements System.Net.ICertificatePolicy

   Public Sub New()

   End Sub

   Public Function CheckValidationResult(ByVal sp As System.Net.ServicePoint, ByVal cert As System.Security.Cryptography.X509Certificates.X509Certificate, ByVal req As System.Net.WebRequest, ByVal problem As Integer) As Boolean

       Return True

   End Function

End Class

I am getting a compile time error:

Class 'CertificatePolicy' must implement 'Function CheckValidationResult(srvPoint As ServicePoint, certificate As Security.Cryptography.X509Certificates.X509Certificate, request As WebRequest, certificateProblem As Integer) As Boolean' for interface 'System.Net.ICertificatePolicy'.

If anyone has any idea please let me know,

Cheers.

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, February 27, 2007 9:29 AM by Enrico

thx a lot!

Nice Tipp - and solved the Problem for me.

now ill make the funktion a little bit more secure as you suggested ;)

# re: Consuming Webservices over HTTPS (SSL)

Monday, March 05, 2007 9:23 PM by Jas

Reno :

Try changing the Class name to something like MyCertificateValidation instead of CertificatePolicy

Hopefully that will fix it.

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, March 06, 2007 2:56 AM by ...

luogo interessante, soddisfare interessante, buon!

# re: Consuming Webservices over HTTPS (SSL)

Saturday, March 10, 2007 11:49 PM by ...

Luogo molto buon:) Buona fortuna!

# re: Consuming Webservices over HTTPS (SSL)

Monday, March 12, 2007 5:08 PM by incest porn

# re: Consuming Webservices over HTTPS (SSL)

Thursday, March 15, 2007 7:52 PM by bob

somestrangetextvista http://sdfsdfsdf.com

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, March 28, 2007 5:45 AM by ouachita vacation rentals

<a href=" http://greatbestprice.info/5/realty-las-vegas-rentals.html ">realty las vegas rentals</a> <a href=" http://greatbestprice.info/5/u-haul-truck-rental.html ">u haul truck rental</a> <a href=" http://greatbestprice.info/5/cabin-rentals-in-tenessee.html ">cabin rentals in tenessee</a> <a href=" http://greatbestprice.info/5/rental-property-moore-oklahoma.html ">rental property moore oklahoma</a> <a href=" http://greatbestprice.info/5/north-wildwood-rentals.html ">north wildwood rentals</a> <a href=" http://greatbestprice.info/5/lake-cuomo-italy-rentals.html ">lake cuomo italy rentals</a> <a href=" http://greatbestprice.info/5/condo-rentals-destin.html ">condo rentals destin</a> <a href=" http://greatbestprice.info/5/clown-rental-for-philly.html ">clown rental for philly</a> <a href=" http://greatbestprice.info/5/nh-real-estate-rentals.html ">nh real estate-rentals</a> <a href=" http://greatbestprice.info/5/motor-home-rental-georgia.html ">motor home rental georgia</a> <a href=" http://greatbestprice.info/5/condo-rentals-cannon-beach.html ">condo rentals cannon beach</a> <a href=" http://greatbestprice.info/5/bayhouse-rentals.html ">bayhouse rentals</a> <a href=" http://greatbestprice.info/5/yonahlossee-rentals.html ">yonahlossee rentals</a> <a href=" http://greatbestprice.info/5/party-rentals-in-pittsfield-ma..html ">party rentals in pittsfield ma.</a> <a href=" http://greatbestprice.info/5/sebago-boat-rental.html ">sebago boat rental</a> <a href=" http://greatbestprice.info/5/cabin-rentals-in-gatlinburg-tn.html ">cabin rentals in gatlinburg tn</a> <a href=" http://greatbestprice.info/5/parentalontrols.html ">parentalontrols</a> <a href=" http://greatbestprice.info/5/jekyll-island-georgia-vacation-rentals.html ">jekyll island georgia vacation rentals</a> <a href=" http://greatbestprice.info/5/ouachita-vacation-rentals.html ">ouachita vacation rentals</a> <a href=" http://greatbestprice.info/5/rental-questionaire.html ">rental questionaire</a>

# re: Consuming Webservices over HTTPS (SSL)

Friday, March 30, 2007 2:14 AM by ringtones

<a href=http://spec-sell.info/index7.html>tracfone free poly ringtones</a>

<a href=http://spec-sell.info/index8.html>tracfone promotional codes for ringtones</a>

<a href=http://spec-sell.info/index9.html>trac phone ringtones</a>

<a href=http://spec-sell.info/index.html>train ringtones</a>

<a href=http://spec-sell.info/index1.html>trainringtones</a>

<a href=http://spec-sell.info/index2.html>trapt ringtones headstrong music tone</a>

<a href=http://spec-sell.info/index3.html>treo ringtones free</a>

<a href=http://spec-sell.info/index4.html>true beats ringtones</a>

<a href=http://spec-sell.info/index5.html>truebeats ringtones</a>

<a href=http://spec-sell.info/index6.html>truetone ringtones</a>

<a href=http://spec-sell.info/index7.html>truringtones</a>

<a href=http://spec-sell.info/index8.html>tupac ringtones for wireless</a>

<a href=http://spec-sell.info/index9.html>turn your music into ringtones</a>

<a href=http://spec-sell.info/index.html>tv ringtones</a>

<a href=http://spec-sell.info/index1.html>tweety ringtones</a>

<a href=http://spec-sell.info/index2.html>twista ringtones</a>

# re: Consuming Webservices over HTTPS (SSL)

Sunday, April 08, 2007 2:38 PM by free game all time

<a href=" http://supergreatsearch.info/3/gamesfaqs.html ">gamesfaqs</a> <a href=" http://supergreatsearch.info/3/texas-game-warden-life.html ">texas game warden life</a> <a href=" http://supergreatsearch.info/3/free-boggle-games.html ">free boggle games</a> <a href=" http://supergreatsearch.info/3/best-shooting-games-online.html ">best shooting games online</a> <a href=" http://supergreatsearch.info/3/aol-free-bingo-games.html ">aol free bingo games</a> <a href=" http://supergreatsearch.info/3/free-bingo-games-win-cash.html ">free bingo games win cash</a> <a href=" http://supergreatsearch.info/3/star-wars-video-games.html ">star wars video games</a> <a href=" http://supergreatsearch.info/3/nintendo-game-cube-cheat-codes.html ">nintendo game cube cheat codes</a> <a href=" http://supergreatsearch.info/3/games-photohunt.html ">games photohunt</a> <a href=" http://supergreatsearch.info/3/see-all-games.html ">see all games</a> <a href=" http://supergreatsearch.info/3/games-for-preschool.html ">games for preschool</a> <a href=" http://supergreatsearch.info/3/downloadable-dog-games.html ">downloadable dog games</a> <a href=" http://supergreatsearch.info/3/spiderman-birthday-party-games.html ">spiderman birthday party games</a> <a href=" http://supergreatsearch.info/3/gameboy-advance-sp-battery-charger.html ">gameboy advance sp battery charger</a> <a href=" http://supergreatsearch.info/3/free-fun-fast-game-downloads.html ">free fun fast game downloads</a> <a href=" http://supergreatsearch.info/3/christian-women-party-games.html ">christian women party games</a> <a href=" http://supergreatsearch.info/3/free-game-all-time.html ">free game all time</a> <a href=" http://supergreatsearch.info/3/beyblade-online-games.html ">beyblade online games</a> <a href=" http://supergreatsearch.info/3/canasta-card-games.html ">canasta card games</a> <a href=" http://supergreatsearch.info/3/basketball-games-online.html ">basketball games online</a>

# re: Consuming Webservices over HTTPS (SSL)

Thursday, April 19, 2007 4:24 AM by Britneyottty

<a href= http://www.angelfire.com/crazy/vesugo >a mei taiwan</a> <a href= http://www.angelfire.com/poetry/hidoly >a.biz buy health man online</a> <a href= http://www.angelfire.com/goth/cogawy >a g customs</a> <a href= http://www.angelfire.com/droid/pityny >a727</a> <a href= http://www.angelfire.com/goth/muqaru >aaacom</a>

# re: Consuming Webservices over HTTPS (SSL)

Thursday, April 19, 2007 4:24 AM by Britneyottty

<a href= http://www.angelfire.com/crazy/vesugo >a mei taiwan</a> <a href= http://www.angelfire.com/poetry/hidoly >a.biz buy health man online</a> <a href= http://www.angelfire.com/goth/cogawy >a g customs</a> <a href= http://www.angelfire.com/droid/pityny >a727</a> <a href= http://www.angelfire.com/goth/muqaru >aaacom</a>

# re: Consuming Webservices over HTTPS (SSL)

Sunday, April 22, 2007 9:06 AM by wet ***

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, April 25, 2007 6:44 AM by Hi Sam! Photos i send on e-mail. Green,Green

Hi Sam! Photos i send on e-mail.

Green,Hi Sam! Photos i send on e-mail.

Green

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, April 25, 2007 1:01 PM by jduye,http://www.goamoto.ru/001.php <a href="http://www.goamoto.ru/001.php">001</a> http://www.goamoto.ru/002.php <a href="http://www.goamoto.ru/002.php">002</a> http://www.goamoto.ru/003.php <a href="http://www.goamoto.ru/003.php">003</a> http://www.goamoto.ru/004.php <a href="http://www.goamoto.ru/004.php">004</a> http://www.goamoto.ru/005.php <a href="http://www.goamoto.ru/005.php">005</a> http://www.goamoto.ru/006.php <a href="http://www.goamoto.ru/006.php">006</a> http://www.goamoto.ru/007.php <a href="http://www.goamoto.ru/007.php">007</a> http://www.goamoto.ru/008.php <a href="http://www.goamoto.ru/008.php">008</a> http://www.goamoto.ru/009.php <a href="http://www.goamoto.ru/009.php">009</a> http://www.goamoto.ru/010.php <a href="http://www.goamoto.ru/010.php">010</a> http://www.goamoto.ru/011.php <a href="http://www.goamoto.ru/011.php">011</a> http://www.goamoto.ru/012.php <a href="http://www.goamoto.ru/012.php">012</a> http://www.goamoto.ru/013.php <a href="http://www.goamoto.ru/013.php">013</a> http://www.goamoto.ru/014.php <a href="http://www.goamoto.ru/014.php">014</a> http://www.goamoto.ru/015.php <a href="http://www.goamoto.ru/015.php">015</a> http://www.goamoto.ru/016.php <a href="http://www.goamoto.ru/016.php">016</a> http://www.goamoto.ru/017.php <a href="http://www.goamoto.ru/017.php">017</a> http://www.goamoto.ru/018.php <a href="http://www.goamoto.ru/018.php">018</a> http://www.goamoto.ru/019.php <a href="http://www.goamoto.ru/019.php">019</a> http://www.goamoto.ru/020.php <a href="http://www.goamoto.ru/020.php">020</a> http://www.goamoto.ru/021.php <a href="http://www.goamoto.ru/021.php">021</a> http://www.goamoto.ru/022.php <a href="http://www.goamoto.ru/022.php">022</a> http://www.goamoto.ru/023.php <a href="http://www.goamoto.ru/023.php">023</a> http://www.goamoto.ru/024.php <a href="http://www.goamoto.ru/024.php">024</a> http://www.goamoto.ru/025.php <a href="http://www.goamoto.ru/025.php">025</a> http://www.goamoto.ru/026.php <a href="http://www.goamoto.ru/026.php">026</a> http://www.goamoto.ru/027.php <a href="http://www.goamoto.ru/027.php">027</a> http://www.goamoto.ru/028.php <a href="http://www.goamoto.ru/028.php">028</a> http://www.goamoto.ru/029.php <a href="http://www.goamoto.ru/029.php">029</a> http://www.goamoto.ru/030.php <a href="http://www.goamoto.ru/030.php">030</a> http://www.goamoto.ru/031.php <a href="http://www.goamoto.ru/031.php">031</a> http://www.goamoto.ru/032.php <a href="http://www.goamoto.ru/032.php">032</a> http://www.goamoto.ru/033.php <a href="http://www.goamoto.ru/033.php">033</a> http://www.goamoto.ru/034.php <a href="http://www.goamoto.ru/034.php">034</a> http://www.goamoto.ru/035.php <a href="http://www.goamoto.ru/035.php">035</a> http://www.goamoto.ru/036.php <a href="http://www.goamoto.ru/036.php">036</a> http://www.goamoto.ru/037.php <a href="http://www.goamoto.ru/037.php">037</a> http://www.goamoto.ru/038.php <a href="http://www.goamoto.ru/038.php">038</a> http://www.goamoto.ru/039.php <a href="http://www.goamoto.ru/039.php">039</a> http://www.goamoto.ru/040.php <a href="http://www.goamoto.ru/040.php">040</a> http://www.goamoto.ru/041.php <a href="http://www.goamoto.ru/041.php">041</a> http://www.goamoto.ru/042.php <a href="http://www.goamoto.ru/042.php">042</a> http://www.goamoto.ru/043.php <a href="http://www.goamoto.ru/043.php">043</a> http://www.goamoto.ru/044.php <a href="http://www.goamoto.ru/044.php">044</a> http://www.goamoto.ru/045.php <a href="http://www.goamoto.ru/045.php">045</a>

http://www.goamoto.ru/001.php <a href="http://www.goamoto.ru/001.php">001</a>

http://www.goamoto.ru/002.php <a href="http://www.goamoto.ru/002.php">002</a>

http://www.goamoto.ru/003.php <a href="http://www.goamoto.ru/003.php">003</a>

http://www.goamoto.ru/004.php <a href="http://www.goamoto.ru/004.php">004</a>

http://www.goamoto.ru/005.php <a href="http://www.goamoto.ru/005.php">005</a>

http://www.goamoto.ru/006.php <a href="http://www.goamoto.ru/006.php">006</a>

http://www.goamoto.ru/007.php <a href="http://www.goamoto.ru/007.php">007</a>

http://www.goamoto.ru/008.php <a href="http://www.goamoto.ru/008.php">008</a>

http://www.goamoto.ru/009.php <a href="http://www.goamoto.ru/009.php">009</a>

http://www.goamoto.ru/010.php <a href="http://www.goamoto.ru/010.php">010</a>

http://www.goamoto.ru/011.php <a href="http://www.goamoto.ru/011.php">011</a>

http://www.goamoto.ru/012.php <a href="http://www.goamoto.ru/012.php">012</a>

http://www.goamoto.ru/013.php <a href="http://www.goamoto.ru/013.php">013</a>

http://www.goamoto.ru/014.php <a href="http://www.goamoto.ru/014.php">014</a>

http://www.goamoto.ru/015.php <a href="http://www.goamoto.ru/015.php">015</a>

http://www.goamoto.ru/016.php <a href="http://www.goamoto.ru/016.php">016</a>

http://www.goamoto.ru/017.php <a href="http://www.goamoto.ru/017.php">017</a>

http://www.goamoto.ru/018.php <a href="http://www.goamoto.ru/018.php">018</a>

http://www.goamoto.ru/019.php <a href="http://www.goamoto.ru/019.php">019</a>

http://www.goamoto.ru/020.php <a href="http://www.goamoto.ru/020.php">020</a>

http://www.goamoto.ru/021.php <a href="http://www.goamoto.ru/021.php">021</a>

http://www.goamoto.ru/022.php <a href="http://www.goamoto.ru/022.php">022</a>

http://www.goamoto.ru/023.php <a href="http://www.goamoto.ru/023.php">023</a>

http://www.goamoto.ru/024.php <a href="http://www.goamoto.ru/024.php">024</a>

http://www.goamoto.ru/025.php <a href="http://www.goamoto.ru/025.php">025</a>

http://www.goamoto.ru/026.php <a href="http://www.goamoto.ru/026.php">026</a>

http://www.goamoto.ru/027.php <a href="http://www.goamoto.ru/027.php">027</a>

http://www.goamoto.ru/028.php <a href="http://www.goamoto.ru/028.php">028</a>

http://www.goamoto.ru/029.php <a href="http://www.goamoto.ru/029.php">029</a>

http://www.goamoto.ru/030.php <a href="http://www.goamoto.ru/030.php">030</a>

http://www.goamoto.ru/031.php <a href="http://www.goamoto.ru/031.php">031</a>

http://www.goamoto.ru/032.php <a href="http://www.goamoto.ru/032.php">032</a>

http://www.goamoto.ru/033.php <a href="http://www.goamoto.ru/033.php">033</a>

http://www.goamoto.ru/034.php <a href="http://www.goamoto.ru/034.php">034</a>

http://www.goamoto.ru/035.php <a href="http://www.goamoto.ru/035.php">035</a>

http://www.goamoto.ru/036.php <a href="http://www.goamoto.ru/036.php">036</a>

http://www.goamoto.ru/037.php <a href="http://www.goamoto.ru/037.php">037</a>

http://www.goamoto.ru/038.php <a href="http://www.goamoto.ru/038.php">038</a>

http://www.goamoto.ru/039.php <a href="http://www.goamoto.ru/039.php">039</a>

http://www.goamoto.ru/040.php <a href="http://www.goamoto.ru/040.php">040</a>

http://www.goamoto.ru/041.php <a href="http://www.goamoto.ru/041.php">041</a>

http://www.goamoto.ru/042.php <a href="http://www.goamoto.ru/042.php">042</a>

http://www.goamoto.ru/043.php <a href="http://www.goamoto.ru/043.php">043</a>

http://www.goamoto.ru/044.php <a href="http://www.goamoto.ru/044.php">044</a>

http://www.goamoto.ru/045.php <a href="http://www.goamoto.ru/045.php">045</a>

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, April 25, 2007 5:04 PM by Ruth

Hi there, i have a problem a have to consume a webservice located on a webserver which uses SSL and HTTPS and I do not what to do, please could you help me!

# re: Consuming Webservices over HTTPS (SSL)

Monday, April 30, 2007 2:19 AM by ...

[URL=http://www.mamma0.info/consulenza] consulenza [/URL]   <a href='http://www.mamma0.info/consulenza'> consulenza </a> [URL=http://www.mamma0.info/share] share [/URL]   <a href='http://www.mamma0.info/share'> share </a> [URL=http://www.mamma0.info/iene] iene [/URL]   <a href='http://www.mamma0.info/iene'> iene </a> [URL=http://www.mamma0.info/juve] juve [/URL]   <a href='http://www.mamma0.info/juve'> juve </a> [URL=http://www.mamma0.info/condizionatori] condizionatori [/URL]   <a href='http://www.mamma0.info/condizionatori'> condizionatori </a> [URL=http://www.mamma0.info/parametri] parametri [/URL]   <a href='http://www.mamma0.info/parametri'> parametri </a> [URL=http://www.mamma0.info/autostrada] autostrada [/URL]   <a href='http://www.mamma0.info/autostrada'> autostrada </a> [URL=http://www.mamma0.info/calcola] calcola [/URL]   <a href='http://www.mamma0.info/calcola'> calcola </a> [URL=http://www.mamma0.info/template] template [/URL]   <a href='http://www.mamma0.info/template'> template </a> [URL=http://www.mamma0.info/fuoristrada] fuoristrada [/URL]   <a href='http://www.mamma0.info/fuoristrada'> fuoristrada </a> [URL=http://www.mamma0.info/studi] studi [/URL]   <a href='http://www.mamma0.info/studi'> studi </a> [URL=http://www.mamma0.info/aumento] aumento [/URL]   <a href='http://www.mamma0.info/aumento'> aumento </a> [URL=http://www.mamma0.info/commerciale] commerciale [/URL]   <a href='http://www.mamma0.info/commerciale'> commerciale </a> [URL=http://www.mamma0.info/paesi] paesi [/URL]   <a href='http://www.mamma0.info/paesi'> paesi </a> [URL=http://www.mamma0.info/liquidazione] liquidazione [/URL]   <a href='http://www.mamma0.info/liquidazione'> liquidazione </a> [URL=http://www.mamma0.info/credits] credits [/URL]   <a href='http://www.mamma0.info/credits'> credits </a> [URL=http://www.mamma0.info/incidenti] incidenti [/URL]   <a href='http://www.mamma0.info/incidenti'> incidenti </a> [URL=http://www.mamma0.info/mondo] mondo [/URL]   <a href='http://www.mamma0.info/mondo'> mondo </a> [URL=http://www.mamma0.info/spagnolo] spagnolo [/URL]   <a href='http://www.mamma0.info/spagnolo'> spagnolo </a> [URL=http://www.mamma0.info/disdetta] disdetta [/URL]   <a href='http://www.mamma0.info/disdetta'> disdetta </a> [URL=http://www.mamma0.info/pressione] pressione [/URL]   <a href='http://www.mamma0.info/pressione'> pressione </a> [URL=http://www.mamma0.info/gialle] gialle [/URL]   <a href='http://www.mamma0.info/gialle'> gialle </a> [URL=http://www.mamma0.info/tempi] tempi [/URL]   <a href='http://www.mamma0.info/tempi'> tempi </a> [URL=http://www.mamma0.info/more] more [/URL]   <a href='http://www.mamma0.info/more'> more </a> [URL=http://www.mamma0.info/aree] aree [/URL]   <a href='http://www.mamma0.info/aree'> aree </a>

# re: Consuming Webservices over HTTPS (SSL)

Sunday, May 06, 2007 7:23 AM by green guy porno

<a href=" http://hotgirlstore.info/a/male-porn-sites.html ">male porn sites</a> <a href=" http://hotgirlstore.info/a/porn-witchcraft.html ">porn witchcraft</a> <a href=" http://hotgirlstore.info/a/porn-latinas.html ">porn latinas</a> <a href=" http://hotgirlstore.info/a/male-porn-star-chad-hunt.html ">male porn star chad hunt</a> <a href=" http://hotgirlstore.info/a/porn.-movies-incest.html ">porn. movies incest</a> <a href=" http://hotgirlstore.info/a/porn-trailer-video.html ">porn trailer video</a> <a href=" http://hotgirlstore.info/a/dragonball-z-porno.html ">dragonball z porno</a> <a href=" http://hotgirlstore.info/a/bollywood-porno-film.html ">bollywood porno film</a> <a href=" http://hotgirlstore.info/a/black-chic-porn.html ">black chic porn</a> <a href=" http://hotgirlstore.info/a/thumb-vintage-pornography.html ">thumb vintage pornography</a> <a href=" http://hotgirlstore.info/a/porn-lolita.html ">porn lolita</a> <a href=" http://hotgirlstore.info/a/fat-porno-women.html ">fat porno women</a> <a href=" http://hotgirlstore.info/a/porno-swedish.html ">porno swedish</a> <a href=" http://hotgirlstore.info/a/porn-blogs.html ">porn blogs</a> <a href=" http://hotgirlstore.info/a/doggy-style-porno.html ">doggy style porno</a> <a href=" http://hotgirlstore.info/a/underage-preteenz-porn.html ">underage preteenz porn</a> <a href=" http://hotgirlstore.info/a/round-and-brown-porn.html ">round and brown porn</a> <a href=" http://hotgirlstore.info/a/sample-porn-videos.html ">sample porn videos</a> <a href=" http://hotgirlstore.info/a/male-pornography.html ">male pornography</a> <a href=" http://hotgirlstore.info/a/green-guy-porno.html ">green guy porno</a>

# Online-Videogame-Rental.com - Rent Xbox 360, PS3, Wii Games Online!

I was checking out this blog and saw them talking about renting video games. Take a look.

# Mcse Certification Training

Monday, June 04, 2007 9:21 AM by Mcse Certification Training

I just consider to apply for the MCSE Certification Exam and come across your site. It is a very interesting post that I will surely recommend to my readers.

# re: Consuming Webservices over HTTPS (SSL)

Saturday, June 16, 2007 7:05 PM by ...

[URL=www.lebend16.org/testo-di] testo di [/URL]   <a href='www.lebend16.org/testo-di'> testo di </a>

# re: Consuming Webservices over HTTPS (SSL)

Sunday, June 17, 2007 12:19 AM by ...

[URL=www.lebend16.org/angeles-los] angeles los [/URL]   <a href='www.lebend16.org/angeles-los'> angeles los </a> [URL=www.lebend16.org/musica-free] musica free [/URL]   <a href='www.lebend16.org/musica-free'> musica free </a>

# Infidelity Recovery

Tuesday, June 19, 2007 7:58 AM by Infidelity Recovery

I just read some good articles on how to save a marriage over at this girls site. Pretty good stuff.

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, July 18, 2007 8:06 AM by Aaron Forman

should look like this in VB:

Public Class MyCertificateValidation

   Implements ICertificatePolicy

   ' Default policy for certificate validation.

   Public Shared DefaultValidate As Boolean = False

   Public Function CheckValidationResult(ByVal srvPoint As ServicePoint, _

   ByVal cert As X509Certificate, ByVal request As WebRequest, ByVal problem As Integer) _

      As Boolean Implements ICertificatePolicy.CheckValidationResult

       Return True

   End Function

End Class

then to make the call:

       ServicePointManager.CertificatePolicy = New MyCertificateValidation

# re: Consuming Webservices over HTTPS (SSL)

Friday, July 20, 2007 4:48 PM by Harvey

Very interisting thead, but I have an additional problem, I want to call a web service (over HTTPS) from a UserControl from within IE. In this case the following call  fails :

       System.Net.ServicePointManager.ServerCertificateValidationCallback = RemoteCertificateValidationCallback;

I get a :

+ ex {"Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."} System.Exception {System.Security.SecurityException}

Does someone have an idea ?

# re: Consuming Webservices over HTTPS (SSL)

Monday, August 20, 2007 11:58 PM by Denny

The code doesn't look right.

Here's how the callback stuff works in VB --

   Private Function AcceptAllCerts( _

   ByVal sender As Object, _

   ByVal cert As Security.Cryptography.X509Certificates.X509Certificate, _

   ByVal chain As Security.Cryptography.X509Certificates.X509Chain, _

   ByVal SslPolicyErrors As System.Net.Security.SslPolicyErrors) As Boolean

       Return True

   End Function

Elsewhere in the code...

System.Net.ServicePointManager.ServerCertificateValidationCallback = New System.Net.Security.RemoteCertificateValidationCallback(AddressOf AcceptAllCerts)

# re: Consuming Webservices over HTTPS (SSL)

Saturday, August 25, 2007 3:00 AM by Aguilar

I have developed a web service that call another web service which need a SSL connection.

I use the wizard in Visual Studio 2006

Therefore I pass, to be able to connect, I pass credential and certificate

All ok.

I see the functions of the called webservice, but the error that I get is:

The request was aborted: Could not create SSL/TLS secure channel.

How I can resolve the problem?

Tanks

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, September 11, 2007 7:45 AM by Nouman Khalid

it worked beautifully. keep it up. good info.

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, September 12, 2007 3:10 PM by Joseph

using System.Security.Cryptography.X509Certificates;

you'll want to include the system.security class for the x509 certificates, other than that, there's not much more to be said.

Thanks for the blog site, after racking my brain against this problem for several hours I finally found your blog and it solved it with a nice, neat and elegant solution.

Thanks again.

# re: Consuming Webservices over HTTPS (SSL)

Friday, September 21, 2007 1:32 PM by Robert

High Five to you.

Thanks - this saved a lot of troubleshooting time for me!

# re: Consuming Webservices over HTTPS (SSL)

Monday, September 24, 2007 11:37 AM by Fricco

You could just use RemoteCertificateValidationCallback Delegate.

msdn2.microsoft.com/.../system.net.security.remotecertificatevalidationcallback.aspx

# re: Consuming Webservices over HTTPS (SSL)

Saturday, September 29, 2007 12:54 AM by ...

[URL=www.cruatio.cn/google-immagini] google immagini [/URL]   <a href='www.cruatio.cn/google-immagini'> google immagini </a> [URL=www.cruatio.cn/www-tuttosport-it] www tuttosport it [/URL]   <a href='www.cruatio.cn/www-tuttosport-it'> www tuttosport it </a> [URL=http://www.cruatio.cn/rodi] rodi [/URL]   <a href='http://www.cruatio.cn/rodi'> rodi </a> [URL=http://www.cruatio.cn/paola] paola [/URL]   <a href='http://www.cruatio.cn/paola'> paola </a> [URL=www.cruatio.cn/gratis-porn] gratis porn [/URL]   <a href='www.cruatio.cn/gratis-porn'> gratis porn </a> [URL=www.cruatio.cn/infermiere-porche] infermiere porche [/URL]   <a href='www.cruatio.cn/infermiere-porche'> infermiere porche </a> [URL=www.cruatio.cn/amatoriali] amatoriali [/URL]   <a href='www.cruatio.cn/amatoriali'> amatoriali </a> [URL=www.cruatio.cn/configurare] configurare [/URL]   <a href='www.cruatio.cn/configurare'> configurare </a> [URL=http://www.cruatio.cn/outlet] outlet [/URL]   <a href='http://www.cruatio.cn/outlet'> outlet </a> [URL=http://www.cruatio.cn/mature] mature [/URL]   <a href='http://www.cruatio.cn/mature'> mature </a> [URL=http://www.cruatio.cn/inpdap] inpdap [/URL]   <a href='http://www.cruatio.cn/inpdap'> inpdap </a> [URL=www.cruatio.cn/messenger-7-5] messenger 7 5 [/URL]   <a href='www.cruatio.cn/messenger-7-5'> messenger 7 5 </a> [URL=http://www.cruatio.cn/finanza] finanza [/URL]   <a href='http://www.cruatio.cn/finanza'> finanza </a> [URL=www.cruatio.cn/wwwyahoo-es] wwwyahoo es [/URL]   <a href='www.cruatio.cn/wwwyahoo-es'> wwwyahoo es </a> [URL=www.cruatio.cn/slot-machine] slot machine [/URL]   <a href='www.cruatio.cn/slot-machine'> slot machine </a> [URL=www.cruatio.cn/sintomo-gravidanza] sintomo gravidanza [/URL]   <a href='www.cruatio.cn/sintomo-gravidanza'> sintomo gravidanza </a> [URL=www.cruatio.cn/mara-venier-nuda] mara venier nuda [/URL]   <a href='www.cruatio.cn/mara-venier-nuda'> mara venier nuda </a> [URL=www.cruatio.cn/emule-047] emule 047 [/URL]   <a href='www.cruatio.cn/emule-047'> emule 047 </a> [URL=http://www.cruatio.cn/abiti] abiti [/URL]   <a href='http://www.cruatio.cn/abiti'> abiti </a> [URL=http://www.cruatio.cn/sfondo] sfondo [/URL]   <a href='http://www.cruatio.cn/sfondo'> sfondo </a> [URL=http://www.cruatio.cn/upskirt] upskirt [/URL]   <a href='http://www.cruatio.cn/upskirt'> upskirt </a> [URL=www.cruatio.cn/sesso-gratuito] sesso gratuito [/URL]   <a href='www.cruatio.cn/sesso-gratuito'> sesso gratuito </a> [URL=http://www.cruatio.cn/eros] eros [/URL]   <a href='http://www.cruatio.cn/eros'> eros </a> [URL=www.cruatio.cn/simpson-xxx] simpson xxx [/URL]   <a href='www.cruatio.cn/simpson-xxx'> simpson xxx </a> [URL=www.cruatio.cn/video-hard] video hard [/URL]   <a href='www.cruatio.cn/video-hard'> video hard </a>

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, October 02, 2007 4:23 PM by ...

[URL=www.blessio.cn/mara-venier] mara venier [/URL]   <a href='www.blessio.cn/mara-venier'> mara venier </a> [URL=http://www.blessio.cn/treno] treno [/URL]   <a href='http://www.blessio.cn/treno'> treno </a> [URL=www.blessio.cn/www-bastardi-dentro-it] www bastardi dentro it [/URL]   <a href='www.blessio.cn/www-bastardi-dentro-it'> www bastardi dentro it </a> [URL=www.blessio.cn/video-clip-porno] video clip porno [/URL]   <a href='www.blessio.cn/video-clip-porno'> video clip porno </a> [URL=http://www.blessio.cn/pescara] pescara [/URL]   <a href='http://www.blessio.cn/pescara'> pescara </a> [URL=www.blessio.cn/www-ssc-napoli-it] www ssc napoli it [/URL]   <a href='www.blessio.cn/www-ssc-napoli-it'> www ssc napoli it </a> [URL=http://www.blessio.cn/spy-cam] spy cam [/URL]   <a href='http://www.blessio.cn/spy-cam'> spy cam </a> [URL=www.blessio.cn/video-3gp] video 3gp [/URL]   <a href='www.blessio.cn/video-3gp'> video 3gp </a> [URL=www.blessio.cn/ilaria-d-amico] ilaria d amico [/URL]   <a href='www.blessio.cn/ilaria-d-amico'> ilaria d amico </a> [URL=http://www.blessio.cn/bambola] bambola [/URL]   <a href='http://www.blessio.cn/bambola'> bambola </a> [URL=www.blessio.cn/www-pagine-gialle-it] www pagine gialle it [/URL]   <a href='www.blessio.cn/www-pagine-gialle-it'> www pagine gialle it </a> [URL=http://www.blessio.cn/vhs-dvd] vhs dvd [/URL]   <a href='http://www.blessio.cn/vhs-dvd'> vhs dvd </a> [URL=http://www.blessio.cn/gogle-pl] gogle pl [/URL]   <a href='http://www.blessio.cn/gogle-pl'> gogle pl </a> [URL=www.blessio.cn/movies-mature] movies mature [/URL]   <a href='www.blessio.cn/movies-mature'> movies mature </a> [URL=www.blessio.cn/film-in-rete-com] film in rete com [/URL]   <a href='www.blessio.cn/film-in-rete-com'> film in rete com </a> [URL=www.blessio.cn/my-first-sex-teacher] my first sex teacher [/URL]   <a href='www.blessio.cn/my-first-sex-teacher'> my first sex teacher </a> [URL=www.blessio.cn/concorso-ferrovie-dello-stato] concorso ferrovie dello stato [/URL]   <a href='www.blessio.cn/concorso-ferrovie-dello-stato'> concorso ferrovie dello stato </a> [URL=www.blessio.cn/gioco-scaricare] gioco scaricare [/URL]   <a href='www.blessio.cn/gioco-scaricare'> gioco scaricare </a> [URL=www.blessio.cn/annuncio-donna-matura] annuncio donna matura [/URL]   <a href='www.blessio.cn/annuncio-donna-matura'> annuncio donna matura </a> [URL=www.blessio.cn/agenzia-di-viaggi] agenzia di viaggi [/URL]   <a href='www.blessio.cn/agenzia-di-viaggi'> agenzia di viaggi </a> [URL=www.blessio.cn/ovulazione] ovulazione [/URL]   <a href='www.blessio.cn/ovulazione'> ovulazione </a> [URL=http://www.blessio.cn/piedi] piedi [/URL]   <a href='http://www.blessio.cn/piedi'> piedi </a> [URL=www.blessio.cn/dragon-ball-gay] dragon ball gay [/URL]   <a href='www.blessio.cn/dragon-ball-gay'> dragon ball gay </a> [URL=www.blessio.cn/avril-lavigne-porno] avril lavigne porno [/URL]   <a href='www.blessio.cn/avril-lavigne-porno'> avril lavigne porno </a> [URL=www.blessio.cn/incontri-online] incontri online [/URL]   <a href='www.blessio.cn/incontri-online'> incontri online </a>

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, October 03, 2007 12:13 AM by mehdi

Thanks! Great Forum!!!

# re: Consuming Webservices over HTTPS (SSL)

Tuesday, October 16, 2007 10:40 AM by Thank you a lot!

Thanks a lot, this forum is very helpful!

# re: Consuming Webservices over HTTPS (SSL)

Thursday, October 25, 2007 11:34 AM by JasonN

Exactly what we were looking for! Thanks!

# re: Consuming Webservices over HTTPS (SSL)

Sunday, November 04, 2007 12:31 PM by SKK

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

Just add this string to your code and you wiill not need to redefine CertificatePolicy class ...

# re: Consuming Webservices over HTTPS (SSL)

Monday, November 19, 2007 10:48 AM by Nishant

Hi,

    I face a problem while adding web reference to a web service  hosted on a secure server ( https:// ).

    When I try to add reference from this URL i get a error which reads as follows:-

Unable to download following files.

https://.................?wsdl

Do you want to skip these files and continue?

If I continue with it then the reference is added but the wsdl and the reference.cs which get added automatically are not available.

Those are the ones which I need to modify and put the soap authentication code in.

I have to put something generic because I work on local machine but my code will be put on some other machine for execution so local changes won't solve my problem.

Can anyone help please?

# re: Consuming Webservices over HTTPS (SSL)

Thursday, November 29, 2007 9:18 PM by Hugely Grateful

Moritz's solution seems to be working.

Thank you all for pitching solutions to this!

# re: Consuming Webservices over HTTPS (SSL)

Friday, December 07, 2007 7:07 AM by Zahir Khan

WOW....... This one is perfect.... I got my problem resolved.... The biggest thing is this was the first webservice of my life and I put it on SSL with the help of this :)

Damn good man :)

# re: Consuming Webservices over HTTPS (SSL)

Friday, December 07, 2007 1:52 PM by Brian

OK, I've implemented the callback delegate which is supposed to validate the certificate (and seemingly does for many here)

ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)

{return true;};

Problem is, the callback is never invoked. And the end result is the same "The ServicePointManager does not support proxies of https scheme"

Any ideas?

# re: Consuming Webservices over HTTPS (SSL)

Wednesday, December 12, 2007 10:57 AM by Jason

Great tip! I have a very controlled setup and I know the SSL site I'm downloading from is always trustable, and certificates suddenly became an issue. This nicely fixed that, thanks!

# Gene &#038; Tesha &raquo; Blog Archive &raquo; links for 2008-01-24

Wednesday, January 23, 2008 7:28 PM by Gene & Tesha » Blog Archive » links for 2008-01-24

Pingback from  Gene &#038; Tesha  &raquo; Blog Archive   &raquo; links for 2008-01-24

# Consuming Web Services over HTTPS

Wednesday, April 30, 2008 2:40 AM by dentria

Consuming Web Services over HTTPS

# Web Service via SSL

Friday, March 06, 2009 1:56 AM by Shiny Zhu

如果你调用一个启用了SSL的Web服务,你会收到如下错误:

# Consuming Webservices over HTTPS/SSL :TomVD

Friday, December 04, 2009 2:05 AM by Consuming Webservices over HTTPS/SSL :TomVD

Pingback from  Consuming Webservices over HTTPS/SSL :TomVD

# Bypass certificate when consuming SSL enabled web service.... http://weblogs.asp.net/jan/archive/2003/12/04/41154.aspx

Wednesday, February 03, 2010 3:21 AM by Twitter Mirror

Bypass certificate when consuming SSL enabled web service.... http://weblogs. asp.net /jan/archive/2003