Hi,
I am working on a Web Service project. Actually it is a simple web service. I add .wsd page to my project and want to acll it but when I compile, I get "Object reference not set to an instance of an object." error. I dont know what cause this error because I use "new" keyword.
ServiceReference1.firstservisRequest req = new ServiceReference1.firstservisRequest();
req.Body.name = "ali"; -----> I am getting error here.
req.Body.surname = "veli";
"Object reference not set to an instance of an object." problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #107 · 20.5K reputationPosted Feb 26, 2012, 9:21 PM EST