473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

After import the wsdl i have lost it a bit

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));
}
Aug 27 '08 #1
4 2207
Rene A wrote:
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
That's "John Doe". ;)
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));
}
You are putting data in the ThePatient object, and expecting a result in
the TheReturn object, but neither is involved in the call to the web
service.

--
Göran Andersson
_____
http://www.guffa.com
Aug 28 '08 #2
Göran Andersson schreef:
Rene A wrote:
>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.FindByIssuer Name, "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

That's "John Doe". ;)
> 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));
}

You are putting data in the ThePatient object, and expecting a result in
the TheReturn object, but neither is involved in the call to the web
service.

Hmm even with John Doe it dont work ;-)

I have learn a bit from this blog
http://loopback.codebetter.com/blogs...ebservice.aspx
only it is writing in a another language.

It look like i must declare Patients as a array of ThePatient, but i
don't know how to do it.

Then finaly i think/want to put the result of
UitDeCOVClass.controleer(Patients) in TheReturn slometing like TheReturn

TheReturn=UitDeCOVClass.controleer(Patients); but alsos that give me
some errors.
Gr,
Rene
Aug 28 '08 #3
Rene A wrote:
Hmm even with John Doe it dont work ;-)
Strange... I was sure that would do it. ;)
I have learn a bit from this blog
http://loopback.codebetter.com/blogs...ebservice.aspx

only it is writing in a another language.
Another language? It looks like C# to me...
It look like i must declare Patients as a array of ThePatient, but i
don't know how to do it.
You don't know how to create an array, or...?

Look at some of the example code from the page:

ControleerInput requestMessage = new ControleerInput();
requestMessage.Verzekerden = new AanvraagCovType[0];
object responseMessage = ci.controleer(requestMessage);

You need to create an array of AanvraagCovType objects, and assign that
to the Verzekerden property of the ControleerInput object.
Then finaly i think/want to put the result of
UitDeCOVClass.controleer(Patients) in TheReturn slometing like TheReturn

TheReturn=UitDeCOVClass.controleer(Patients); but alsos that give me
some errors.
Well, "some errors" is way too unspecific to be helpful...

The example code puts the result in a variable of the type object, while
you are putting it in a variable of the type RetourinfoCovType. Check
the intellisense for the method to see what it actually returns.

--
Göran Andersson
_____
http://www.guffa.com
Aug 28 '08 #4
Göran Andersson schreef:
Rene A wrote:
>Hmm even with John Doe it dont work ;-)

Strange... I was sure that would do it. ;)
>I have learn a bit from this blog
http://loopback.codebetter.com/blogs...ebservice.aspx

only it is writing in a another language.

Another language? It looks like C# to me...
>It look like i must declare Patients as a array of ThePatient, but i
don't know how to do it.

You don't know how to create an array, or...?

Look at some of the example code from the page:

ControleerInput requestMessage = new ControleerInput();
requestMessage.Verzekerden = new AanvraagCovType[0];
object responseMessage = ci.controleer(requestMessage);

You need to create an array of AanvraagCovType objects, and assign that
to the Verzekerden property of the ControleerInput object.
>Then finaly i think/want to put the result of
UitDeCOVClass.controleer(Patients) in TheReturn slometing like TheReturn

TheReturn=UitDeCOVClass.controleer(Patients); but alsos that give me
some errors.

Well, "some errors" is way too unspecific to be helpful...

The example code puts the result in a variable of the type object, while
you are putting it in a variable of the type RetourinfoCovType. Check
the intellisense for the method to see what it actually returns.

Thanks for your help, i will give it a new try with your tips !
also take some reading in my "Visual C# the basic" book about arrays
object... Normally i work with Delphi, and when i import the WSDL there i
get nice functions and procedure's but there is the difficulty to work
with security x509 certificates.

Groetjes Rene.

Aug 28 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tomislav Lepusic | last post by:
Hello, I don't know if this is the right group (I'm more in Perl, know nothing about Python), so if you can help me thanks, if not, sorry to bother you. I'm working on my student project and...
0
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import...
0
by: Fraser | last post by:
In arranging a simple WSDL so that the types, messages, portTypes and bindings are in one WSDL and the service in another in the manner often described as interface and implementation, I find that...
2
by: Carmit | last post by:
Hi, I'm trying to build a proxy for this webservice: http://webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/EndTransactionLLSRQ.wsdl I'm getting the following error: Error: Unable to import...
3
by: Neter Smith | last post by:
I have run into a problem when trying to import a WSDL reference under VS 2003 and 1.1 of the framework. It appears as if it is in the generation of the proxy that things are failing. When I...
0
by: John Jenkins | last post by:
Hi, any help on this would be greatly apprciated. I have been given a wsdl file from a customer generated by Oracle 10g Web Services tools. When I use wsdl.exe to attempt to produce proxy classes I...
0
by: Steven Bolard | last post by:
Hello, I am trying to port my .net 1.1 application to 2.0. I am using vs2005. I am trying to get my webservices to run and although i can compile them and and get wsdl and service descriptions...
5
by: Pete Wittig | last post by:
Hi, Here is my problem. I have a serviced component that is exposed via a SOAP interface. This particular component, Person, has a method that takes in another object called PersonHobby. When...
1
by: Christof Winter | last post by:
I am trying to use a webservice with SOAPpy: import SOAPpy intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl" intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl) The...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.