Is there anyway I can invoke a WCF service without adding service reference or even having a proxy at all.
Invoking WCF service methods without having a proxy
2.2k Views Asked by VJAI At
3
There are 3 best solutions below
0
On
Brief answer: No
WCF is based on the very fundamental principle of having a proxy between the client and the service being called. You cannot "get around" this.
You have your choice of creating a proxy using Add Service Reference, or creating it in code - but you need a proxy - no way around that.
1
On
If you asks this, it means you might be interested in Dynamic Proxy Generation.
Please have a look at this article. Several points might need to be discussed, but the idea is in here.
This question might also help.
You can invoke the service using a HttpWebRequest. Example below:-