difference between webservices and WCF

Posted by Gayathri under WCF on 5/18/2012 | Points: 10 | Views : 992 | Status : [Member] | Replies : 4
hello all,
This is a very basic doubt.
I created a webservice application and created a proxy to call that in an asp.net application. All this i am developing using vs.net 2010 framework 2.0
executed ,copied this url

i created a web application and called this in webreference. where i pasted this url (created a proxy) and accessed this webservice in webapp.
now i stopped the webservice(asp.net development server ) and tried to execute this webapplication. it is not working.
??really confused. becoz what i understood is webservice works with http only.. and WCF works with TCP,http
then what is the use of webservice?

please clarify.




Responses

Posted by: Kkdubey on: 5/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
As Performance,Wcf is better then Web service because, web service is used xml serializer and wcf is used to Data Contract Serializer.
and DataContract serializer faster than xml serializer. so we use WCF Service.

Regards,
Krishna

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gayathri on: 5/18/2012 [Member] Starter | Points: 25

Up
0
Down
yes i agree. but while hosting through asp.net development server(default server) both Webservice and WCF needs to started inorder to access in windows or web application. so what does it mean by WCF works in TCPIP and http whereas webservices works with only http protocol..

i am sorry if i am asking too many questions.


Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kkdubey on: 5/19/2012 [Member] Starter | Points: 25

Up
0
Down
hi Gayathri,
No problem, for asking too many questions.....
ok,
If you deploy any web service in iis that time, you can use only http protocol.
and you deploy any wcf service in iis that time, you can use http,tcp and msmq protocol.
Another benefit of wcf services,you can host wcf service in iis ,self hosting and Was.

Regards
Krishna

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gayathri on: 5/19/2012 [Member] Starter | Points: 25

Up
0
Down
thatz absolutely clear.. Thanks so much.


:)

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response