XML Web Services

When someone says XML Web Service, that could mean ASMX  or WCF correct?

Because both send  data back and forth in the XML format within a SOAP envelope, correct?
Lawrence AverySystem DeveloperAsked:
Who is Participating?
 
Dejan VasiljevicSys Admin and ProgrammerCommented:
Hi metro156,

Basically, You are using ASMX or WCF for XML web services, like somone is using SOAP for .NET remoting.

So ASMX or WCF? They are basically the same, plus WCF is ASMX + something more.
ASMX is at one side simple, elegant and easy to use, one word user friendly, but you can only call it from HTTP and it is only available in IIS. WCF is on other side hosted in windows services, console application and etc. and You can call it from TCP/IP, HTTP, MSMQ and etc.

I hope I made it clear to You.

Thanks,
D.
0
 
GuruJavaCommented:
Hi Metro156,

here you go ...

WCF is basically "ASMX on stereoids" - it can be all that ASMX could - plus a lot more!.

ASMX is:

easy and simple to write and configure
only available in IIS
only callable from HTTP
WCF can be:

hosted in IIS, a Windows Service, a Winforms application, a console app - you have total freedom
used with HTTP (REST and SOAP), TCP/IP, MSMQ and many more protocols


In short: WCF is here to replace ASMX fully.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.