What service should I use for Silverlight 2 data?

There are ASMX, WCF, REST and ADO.NET Data services ... I've used WCF and ASMX successfully with Silverlight 2, but what about others? What are the advantages and disadvantages of using each type of service with Silverlight 2?

0


source to share


3 answers


You have a variety of options -

  • RESTful webservice (if you need more than just CRUD) + ADO.net Data Service (data)
  • Tried and tested ASMX
  • Build everything in one WCF service that uses SOAP / HTTP / TCP / JSON / Your custome binding


Number 3 is my personal choice.

+1


source


WCF is probably what you want as it is a framework that includes http, soap, tcp, json, etc.



+3


source


Depending on your intentions, you should also consider a few things:

  • RESTful web services are supported by ADO.NET Data Services and many other non-Microsoft platforms.

  • WCF web services should include policy XML file and support more advanced but Microsoft WS- * specific (WS "deathstar" if you want my opinion)

  • ASMX Web Services are simple, but lack a security model built around WCF (either RESTful or SOAP).

If you want to prototype quickly, I would recommend using ASMX services as they require the least amount of effort. If you are doing something that involves a lot of interaction with the database, consider using ADO.NET Data Services and a RESTful approach. If you want to add a lot of complexity, but get better security and configuration, use WCF.

+1


source







All Articles