473,388 Members | 1,286 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,388 software developers and data experts.

Understanding code generated of a WDSL

I have a class generated of a WSDL file.
Now i am trying to use the class, but getting error
"System.NullReferenceException was unhandled"

How mus a declare the type out of the WSDL ?

Here some code, but i have also a "Hello World" code for download :
http://xs4all.nl/~ramse/BSNTest.zip

Any help will be very helpful

groetjes Rene.

private void Test_Click(object sender, EventArgs e)
{

BSN_WSDL.CIBG_SBV_Interface_XIS_InterfaceXIS_XISIn terface_Port
WSDLFunction = new
BSN_WSDL.CIBG_SBV_Interface_XIS_InterfaceXIS_XISIn terface_Port();
BSN_WSDL.XISAntwoordType ReturnData = new
BSN_WSDL.XISAntwoordType();
BSN_WSDL.XISVraagType SendData = new BSN_WSDL.XISVraagType();

X509Store store = new X509Store(StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
X509CertificateCollection col;

col =
store.Certificates.Find(X509FindType.FindBySerialN umber,
"43dc98c57a8428f38798dd97a812e10e", false);
if (col.Count >= 1)
{
WSDLFunction.ClientCertificates.Add(col[0]);
}
// here comes the error System.NullReferenceException was
unhandled
SendData.Vraag.Persoon.BSN = "123456789";
ReturnData = WSDLFunction.GetBSNInfo(SendData);
MessageBox.Show(ReturnData.Antwoord.Adres.FunctieA dres);

}
Oct 10 '08 #1
0 971

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

Similar topics

5
by: MR | last post by:
I apologize in advance for re-asking a question that I posed before. I understand a little more than i did before and I am posing 2 specific questions: I need to write an application that sends...
4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
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...
2
by: MJ | last post by:
Is it possible to completely hide the WSDL that is generated by a myWebservice.asmx?WDSL request? I have used <webServices>
1
by: Ben Crinion | last post by:
I dont think my generated classes are creating a correctly formatted soap envelope I have entered the WSDL into the WebServices Studio app (app is from here...
2
by: =?Utf-8?B?UGV0ZXIgUmF5bWVudA==?= | last post by:
Hi I have the following class: namespace CSWWebServices { public class HistoryField<T> { private T m_name; private string m_value = string.Empty;
1
by: Paul van Brouwershaven | last post by:
Hi All, I'm struggling with the WDSL restrictions in PHP/SOAP for a while know. I would like to create some simple restrictions in my WDSL file. The script are running both on the same server...
3
by: PVACC | last post by:
I have a line of code thus: w3('<input type=radio name=rad onclick="parent.mySub('+i+')">'); The function w3() writes the code in an iframe. I need to set a variable "start" to the value "1"...
1
by: BobLewiston | last post by:
1. program.cs, which: .....a. does some preliminary configuration of the form and then launches it, and <-- couldn't configuration be done transparently upon launching? .....b. all the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.