webservice vs wcf service [duplicate] - c#

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
what is difference with WCF and other web services ?
What are the main difference between web service and wcf service ?
how to call both service?

This is a big question, but a WCF service is much more versatile and can do what a web service can do and much more. See this post for more detailed information regarding this issue.

Related

How server knows either it's a browser request or an api's request? [duplicate]

This question already has answers here:
How do I determine if a HTTP request came from a browser or something else like a web service?
(2 answers)
Closed 4 years ago.
I need your help. Can you please elaborate when a sign in request is sent to server via browser or api, how server differentiate between these requests?
Thank you.
I found an answer that might be helpful: How do I determine if a HTTP request came from a browser or something else like a web service?
Also have a read of this little article about ASP.NET API authentication: Basic Authentication in ASP.NET Web API
In Short:
If it is simply an HTTP request then you cannot know. Otherwise if you're developing an API there are techniques used for authentication of the client as it's described in the second link I put above.
Hope this helps.

standalone application for WCF [duplicate]

This question already has answers here:
Hosting WCF service on linux
(2 answers)
Closed 6 years ago.
I want to host a game's server on Linux - Debian8 (a VPS), but I'm having a problem: the game is written in C# and needs IIS to host the WCF part of it, which doesn't work on Linux.
Someone told me that it is possible to host a server on Debian but I should create a WCF stand-alone app.
How can I do that?
Here can you find server files which use WCF.
Could you help me with this? thanks!!
No you don't need IIS
Hosting Services
You can host in a Service console app

Hosted WCF Service Calling WinForm [duplicate]

This question already has answers here:
How can a self-hosted (WinForm ) WCF service interact with the main form?
(3 answers)
Closed 7 years ago.
I have a C# WinForms app which is hosting a WCF service. When I call this service from another app, I want that method in the WCF service to call a method on the Form. I could cast the Form.ActiveForm but this doesn't seem a good way to do it. What would be the best way to call the Form from the hosted WCF service?
You could use events. The form registers to the event while the service triggers the event
I found a better solution elsewhere on StackOverflow. I had previously searched on here before posting my question but missed this one
How can a self-hosted (WinForm ) WCF service interact with the main form?
This works nicely so thought I'd update here.

Best way to consume WCF Service from Access application [duplicate]

This question already has answers here:
Calling WCF Service from MS Access
(2 answers)
Closed 7 years ago.
We have a WCF Service and now we are having to suppor tit in backward compatibility mode. One of the consumer turns out to be an Access Application. Now, I have personally never worked with Access and not sure if Access has a direct way to consume the WCF services. However, I came across following link:
http://jaliyaudagedara.blogspot.com/2014/02/calling-wcf-service-from-stored.html?m=1
Given the fact that I would be more comfortable working with SQL Server rather than doing any work in Access to do backward compatibility, I found this link as my best shot to backward compatibility.
Are there any other ways that I can approach this problem?
This question has already been asked and answered here:
Calling WCF Service from MS Access
In short, you can call a WCF service exposed via WebHttpBinding (simple HTTP) or BasicHttpBinding (SOAP/HTTP) using XMLHttp (for simple HTTP) or the SOAP Toolkit (for SOAP/HTTP).

which one to use : Web Services or WCF Services [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
We have a c#net windows application. now our company decided to develop a web application using asp.net to support some of the windows application functionality on the world wide web.
so we are going to deploy some services in our windows application an let the web application to use them.
Which one is the better choice : deploying WCF services or Web services ?
Web Services is a name for services that are reachable over the web infrastructure. Classically that has meant SOAP services, but the last years REST and REST-style (JSON over HTTP but not employing full REST semantics) have grown more popular.
So first you have to choose what kind of API you want to expose: SOAP or JSON over HTTP.
Second, you need a suitable framework for implementing such a services for SOAP services WCF is the right choice. asmx services are deprecated. For JSON over HTTP you can use WCF, but WebApi is easier to work with.
WCF are more complex and powerful than ASMX. However, that also means it takes a lot more effort to write them and a lot more knowledge to handle them. ASMX are super easy to write. Unless you specifically need features in WCF, go with ASMX. That said, there's also the option of ASP.NET Web Api which is the most recent service framework. It's similar to ASMX but much smarter and nicer to work with. I would recommend Web Api if you can use it in your situation.

Categories