Shabber Shah

Shabber Shah

  • NA
  • 35
  • 0

Adding Service Reference In Visual Studio2005 & 2010

Feb 25 2016 3:00 AM

Hi All,

I am using same WCF for my multiple applications.

I added this as a "Web Reference" in my 2 projects of VS2010. And I can access these using the "NameSpace.ServiceName.UserServiceClient" and it is working fine. I declare its object and call a method "Calculate" which return bool.

But I need to use the same reference in VS2005 as well. Here I only have the option to add "web reference" not "service reference" and when I add web reference then i dont see the "UserServiceClient". What should I do for this??

Also in VS2005, after adding this wcf as a Web Reference, I access it like this "NameSpace.WebService.UserService", then creates its object and calls the same method "Calculate". But this time the method "Calculate" returns "void"

Any help? what is the alternate of UserServiceClient in VS2005?

Also Visual Studio 2010 is also installed on the same machine and wcf is workign fine in that project. Thanks. 

Thanks.

Best Regards,

Shah


Answers (1)