You can consume a web service that uses SSL from the .NET Compact
Framework 1.0. You will need to implement your own Certificate Policy
(so that you can manually validate the certificates). Two links:
http://www.opennetcf.org/forums/topi...tificatePolicy
http://www.explosivedog.com/blog/arc...06/21/348.aspx
Also,these posts may be helpful, too:
http://blog.opennetcf.org/ayakhnin/C...3-c249ab2facce
http://groups-beta.google.com/group/...7e615086cbcbd1
FWIW, here's a quick example I did (a form with one button):
using System;
using System.Collections;
using System.Data;
using System.Drawing;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Windows.Forms;
namespace WSSSL_tester
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.MainMenu mainMenu1;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
System.Net.ServicePointManager.CertificatePolicy = new
TrustAllCertificatePolicy();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.button1 = new System.Windows.Forms.Button();
//
// button1
//
this.button1.Location = new System.Drawing.Point(96, 56);
this.button1.Text = "button1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.Controls.Add(this.button1);
this.Menu = this.mainMenu1;
this.Text = "Form1";
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
Application.Run(new Form1());
}
private void button1_Click(object sender, System.EventArgs e)
{
ngb.HelloService hs = new ngb.HelloService();
hs.Url = @"https://www.mysite.com/wsHello/HelloService.asmx";
MessageBox.Show(hs.HelloWorld());
}
}
public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy
{
public TrustAllCertificatePolicy() {}
public bool CheckValidationResult(ServicePoint sp, X509Certificate
cert,WebRequest req, int problem)
{
return true;
}
}
}
HTH,
Nino
Dick Grier wrote:
> Hi,
>
> I'm not sure about SSL.
>
> BTW, you might be interested in this article:
> http://www.businessanyplace.net/?p=wscompress
>
> Your particular data look fairly small, so unless it grows quite a bit, is
> sounds manageable via a web service.
>
> Dick