Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have been asked to create a web service that communicates with Auth.NET CIM and Shipsurance API. My web service will be used by multiple applications (one a desktop and another a web application).

I am confused whether I should build a WCF or an asmx web service.

Auth.NET CIM and Shipsurance API have asmx web services which I would be calling in my newly created web service. So is WCF the right approach or can I stay with asmx?

share|improve this question

closed as primarily opinion-based by svick, gnat, Kilian Foth, GlenH7, MichaelT Nov 13 '13 at 15:55

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

    
recommended reading: Gorilla vs Shark -- "if you... don’t want your question to get instantly closed... — try to keep Gorilla vs. Shark in mind." –  gnat Nov 13 '13 at 8:52
    
@gnat i did not ask which one is superior or anything else .My question was would wcf work in this case .Since i have not used it someone familiar with wcf may be able to help me out –  karthi Nov 13 '13 at 9:02
3  
There is also Web API which is MS newest entry to the web services stable. Also have a look at Service Stack as an alternative. Have a look on Stackoverflow, there are lots of posts on these techs and the pros and cons of each –  Ozz Nov 13 '13 at 10:17
    
There is no reason to use WCF over a simple .asmx if the .asmx can do the job. Only step up to WCF if you need features beyond that, e.g. TCP or named pipe access as well as SOAP over HTTP. –  Carson63000 Nov 13 '13 at 21:50
    
@Carson63000 but isn't asmx an old way to do web service ? wont there be any performance upgrade if i go for WCF –  karthi Nov 19 '13 at 5:24

1 Answer 1

up vote 2 down vote accepted

You can go for WCF. If you read the differences between wcf and webservices you may understand the necessity of wcf over webservices.

WCF offers duplex communication with bindings and improved security. you can configure your data transfer mode and security. I suggest you to read WCF Bidnings.

First of all, wcf is webservice. you can either create a WCF Project library(creates a *.dll) or WCF service application (Appication that you can host).

You can communicate with WCF to a old webservices. WCF has better features and security which you may want to consider before going to web services

share|improve this answer
    
Thanks for replying and not voing down.Some one in the chat room just told me that web api would work .What do you think?The main confusion i have is i will be calling other auth .net webservices from the web services that i create will that cause any perfomance issue –  karthi Nov 13 '13 at 9:20
    
No it wont, the reason behind choosing WCF will be security and flexibility. Choosing web.api which is rather a new technology and easy to implement. If you're new to programming i would suggest WCF(which is easy to learn and gives you a outline of webservices.) If you're good at c#, there you go with Web Api. Web Api is modernized and will be suppored for a long time over wcf. Web APi requires a bit more knowledge in the code practices and standards. So that you wont mess it up. Its up to you to go for API or WCF. both are good. Toss a coin. –  codebrain Nov 13 '13 at 9:43
    
am not new to programming been working on .net for a couple of years. WCF seems to be a safe bet.Thanks a lot :) –  karthi Nov 13 '13 at 10:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.