Click here to Skip to main content
15,747,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have one existing running net tcp WCF service (hosted as windows services). I need to consume it using Console Application. Can I do it without adding Service Reference?
Our requirement is not to use it as service reference.

Thanks in advance.

What I have tried:

I tried adding
<serviceMetadata httpGetEnabled="true"/>
in <behaviour> but it is not working in straight forward way.
F-ES Sitecore 13-Nov-19 8:53am    
Rather than making all that work for yourself, question why you can't add a service reference. If there is a specific reason then you might be able to tackle it. Implementing all that code yourself is pointless.
ZurdoDev 14-Nov-19 7:27am    
Yes, google how to dynamically call web service or google how to call webservice without service reference. Lots of examples online.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900