How can I consume A web-service reference like a dll
Posted
by
Sergiu
on Stack Overflow
See other posts from Stack Overflow
or by Sergiu
Published on 2013-11-04T15:51:05Z
Indexed on
2013/11/04
15:53 UTC
Read the original article
Hit count: 225
I have a small question: Can we consume a web-service reference like a sample dll? I mean something like following: 1. Add reference to assembly in the references 2. add namespace to using (using mywebservice) 3. use it in code like:
var service = new mywebservice.Service1();
var result = service.GetSomething()?
Why I'm asking? It's because of I tried but I get a "strange" error: Cannot load assembly "MyService.dll version, and so on". Thanks in advance!
© Stack Overflow or respective owner