Hi,
I have trouble to execute the UitDeCOVClass.controleer
in my "hello world" project. The problem is that i dont understand how
the wsdl class must be reached and the right value must be filed.
Groetjes Rene
Here is the code .....
************************************
.....
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
.....
void Button1Click(object sender, EventArgs e)
{
/*
The wsdl file is at :
https://acccertificaten.vecozo.nl/we...ov/vz3738.asmx
*/
X509Store store = new X509Store(StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
X509CertificateCollection col =
store.Certificates.Find(X509FindType.FindByIssuerN ame, "VEcCOZO",false);
vecozo.vz3738 UitDeCOVClass;
UitDeCOVClass = new vecozo.vz3738();
// check certificate if found
if (col.Count == 1)
{
UitDeCOVClass.ClientCertificates.Add(store.Certifi cates[0]);
} else MessageBox.Show("No certificate found what match.");
/*
from here i lost it..
I cant get the UitDeCOVClass.controleer(......) to work
*/
vecozo.AanvraagCovType ThePatient;
ThePatient = new vecozo.AanvraagCovType();
vecozo.RetourinfoCovType TheReturn;
TheReturn = new vecozo.RetourinfoCovType();
vecozo.ControleerInput Patients;
Patients = new vecozo.ControleerInput();
ThePatient.Achternaam = "Do"; //John Do
ThePatient.Geslacht = 1;
ThePatient.GeboorteDatum=DateTime.Parse("26-08-2008");
ThePatient.PeildatumVerzekering = DateTime.Parse("26-08-2008");
UitDeCOVClass.controleer(Patients);
// finaly check if we have got something from vecozo
MessageBox.Show(Convert.ToString(TheReturn.BSN));
}