Live data from Hacker News

WCF is Open Source

dotnetfoundation.org

31–40 of 149 posts

Re: WCF is Open Source

#31

WCF is great if you want to make a single data service available as JSON via REST, XML via SOAP, a custom binary protocol via raw TCP, and who-knows-what else. In practice you're almost always better off just picking a single format for your endpoint, in which case there's no reason to use WCF.

What are some other libraries and frameworks that should be used? (For C# web services)

Re: WCF is Open Source

#32

Dear fellow nerds, please write out all acronyms the first time you use them (TFTYUT), our nerd circles may not overlap. After TFTYUT you can use the nice short version however you wish. Many thanks.

www.google.com

Re: WCF is Open Source

#33
WCF made the mistake of trying to be all the things to all the people

The abstraction is simply broken

It tried to be a common abstraction over http, tcp, message queue etc. Which is just not possible

There's too many specifics in each of them to have any sort of common interface (in all but the most simple examples)

Re: WCF is Open Source

#34

WCF is great if you want to make a single data service available as JSON via REST, XML via SOAP, a custom binary protocol via raw TCP, and who-knows-what else. In practice you're almost always better off just picking a single format for your endpoint, in which case there's no reason to use WCF.

What are some other libraries and frameworks that should be used? (For C# web services)

ASP.NET Web API

http://www.asp.net/web-api

Re: WCF is Open Source

#35

WCF is great if you want to make a single data service available as JSON via REST, XML via SOAP, a custom binary protocol via raw TCP, and who-knows-what else. In practice you're almost always better off just picking a single format for your endpoint, in which case there's no reason to use WCF.

What are some other libraries and frameworks that should be used? (For C# web services)

for web services

Nancy http://nancyfx.org/

service stack https://servicestack.net/

Asp.net web api http://www.asp.net/web-api

Re: WCF is Open Source

#36

The first time I had to consume WS- services in .NET, with deeply nested data types I spent a week trying to figure out WCF and the WS endpoint (which was written in Java) and gave up. I wrote a DSL to parse the messages and just stripped the message off the network stack before it even hit the application level where WCF would handle it. It gives me shivers just thinking about it.

Why did you go all the way down to that level? If you could not generate the .NET types from the WSDL (WCF provides tools to do this), you could modify the message using WCF itself. No reason to use a DSL.

https://msdn.microsoft.com/en-us/library/aa717047%28v=vs.110...

Re: WCF is Open Source

#37

Dear fellow nerds, please write out all acronyms the first time you use them (TFTYUT), our nerd circles may not overlap. After TFTYUT you can use the nice short version however you wish. Many thanks.

> please write out all acronyms the first time you use them

Like any other writing, it's just about knowing your audience.

I mean, are you really going to write "HN (Hacker News)", "YC (Y Combinator)", "HTTP (Hyper-Text Transfer Protocol)", etc. every single time you use those in a comment here?

Re: WCF is Open Source

#38
post #37

Dear fellow nerds, please write out all acronyms the first time you use them (TFTYUT), our nerd circles may not overlap. After TFTYUT you can use the nice short version however you wish. Many thanks.

> please write out all acronyms the first time you use them Like any other writing, it's just about knowing your audience. I mean, are you really going to write "HN (Hacker News)", "YC (Y Combinator)", "HTTP (Hyper-Text Transfer Protocol)", etc. every single time you use those in a comment here?

Oh come on. WCF is pretty obscure. .NET is pretty unknown to many HN readers, and even within .NET WCF is not very widely used.

Re: WCF is Open Source

#39

WCF made the mistake of trying to be all the things to all the people The abstraction is simply broken It tried to be a common abstraction over http, tcp, message queue etc. Which is just not possible There's too many specifics in each of them to have any sort of common interface (in all but the most simple examples)

Maybe now is the chance to fix it?

Re: WCF is Open Source

#40

The first time I had to consume WS- services in .NET, with deeply nested data types I spent a week trying to figure out WCF and the WS endpoint (which was written in Java) and gave up. I wrote a DSL to parse the messages and just stripped the message off the network stack before it even hit the application level where WCF would handle it. It gives me shivers just thinking about it.

Why did you go all the way down to that level? If you could not generate the .NET types from the WSDL (WCF provides tools to do this), you could modify the message using WCF itself. No reason to use a DSL. https://msdn.microsoft.com/en-us/library/aa717047%28v=vs.110...

Because I was frustrated and could not figure out how Microsoft wanted the framework to be used. I was new to both WS and WCF at the time. getting WCF configuration working seemed more like a voodoo incantation than any other programming I've ever done.

And no I could not get .NET to generate types from the WSDL and I knew about the tools provided for that. They didn't work and I wasted a lot of time on them because everything I read said they should work.

I used a DSL because that's what I knew and because I had already wasted too much time.

I've since learned to avoid situations like this but that's a whole 'nother comment.

Post reply on HN