Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to consume wcf in .net core without adding service reference?

I want to consume a WCF service in my .NET Core application without adding service reference?

I am able to consume WCF by installing WCF connected service and adding service reference but I don't want to add any service reference.

like image 426
Gopala Krishna Gosukonda Avatar asked Feb 03 '17 06:02

Gopala Krishna Gosukonda


2 Answers

Please refer to the follow link. It has some minors issues, but is easy to fix.

Calling Web Method Without a Service Reference

like image 105
Carlos de Jesus Baez Avatar answered Jan 03 '23 00:01

Carlos de Jesus Baez


if you are using wcf service then you can expose it as a restful service. then you can simply consume it. actully i have been use it for many years and its been really useful. here you can read more about that: REST / SOAP endpoints for a WCF service

like image 32
Mohammad Avatar answered Jan 03 '23 01:01

Mohammad