views:

137

answers:

1

I'm writing a SOAP Server that will act as an endpoint for an external client. The external client expects SOAP 1.1. I'll be taking embedded business objects in the SOAP messages and passing them to an internal application, getting responses back and responding with SOAP messages to the eternal client.

I did the traditional ASMX based web services several years ago. Now, I've been exploring WCF Services and wondering the best approach to take.

1) Should WCF be considered a superset of ASMX web services?

2) Is there any reason to still write new web services using ASMX instead of WCF?

3) Does WCF provide better facilities for working with SOAP messages, as opposed to SOAP Extensions?

4) Can I restrict communication to SOAP 1.1 using WCF, the way I can with a web.config change in ASMX?

5) Does WCF have an easy way to log or review the requests that hit the service without resorting to something like SOAP extensions?

Sorry my questions are not very specific; still trying to get handle on what I need to know...

Using VS2008, Windows Server 2008.

Chris

+5  A: 

I would recommend that you use WCF. If you configure your WCF service to use basichttpbinding, it will work as a SOAP 1.1 service.

  1. WCF "replaces" several communication technologies, including asmx.
  2. I cannot think of any technical reason. You may do it if you have a team that knows asmx but not wcf, or you have a project with a lot of asmx services and you do not want to introduce a new technology.
  3. WCF has message contracts, but not 100% sure what you mean here.
  4. Yes, basic http binding
  5. Yes, you can use WCF tracing
Shiraz Bhaiji
About point 2, I can't think of any **technical** reasons but there may be other reasons.
Tuzo
+1 Information about WCF tracing is very interesting and it was new for me. @wchrisjohnson: ASMX give you one very direct way to write web services. WCF gives you a lot of customizing possibilities, so you receive a method to choose the way which are the most suitable for every your development project.
Oleg
@Tuzo, thanks for the comment, I have updated the answer.
Shiraz Bhaiji