yokzu

yokzu

  • NA
  • 306
  • 0

"Object reference not set to an instance of an object." problem

Feb 26 2012 2:11 PM
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";



Answers (1)