Reputation: 1602
I'm planning to write a web service aka api for my application which was developed with .Net and SQLServer. .Net provides a simple way to create webservices by creating asmx files. But i need to know how best it can be designed or what are the best practices in creating a web service in .net or some pointers to good articles as this is my first experience in web services programming. Eventhough SF has many references to best practices in API (which are very good) i dont find much information oriented for .net webservices.
Update: After dariom's reply i would like to mention that i'm doing it in .net 2.0
Upvotes: 3
Views: 417
Reputation: 237
We are developing web service starting from XSD schema first (contract first). Also we are using Thinktecture’s WSCF - Web Services Contract First tool to generate web service interfaces. It worked for us pretty good for last 2 years.
They also have good walk through on how to use there tool. http://www.thinktecture.com/resourcearchive/tools-and-software/wscf/wscf-walkthrough
Upvotes: 3
Reputation: 314
There's a book of design patterns for .NET ASMX web services here: http://msdn.microsoft.com/en-us/library/ms978729.aspx
It describes the following design patterns:
Entity Aggregation Process Integration Portal Integration Data Integration Function Integration Service-Oriented Integration Presentation Integration Message Broker Message Bus Publish/Subscribe Pipes and Filters Gateway
Upvotes: 0
Reputation: 4578
If you're using .NET 3.0 or later I would encourage you to consider implementing your service using WCF.
The learning curve is steeper, but you'll benefit from the flexibility and features that WCF offers. With WCF you can make your service compatible with ASMX services (regular .NET web services) so other applications and other languages can consume the service as though it was a regular .NET web service.
There are lots of resources to help you get started. Try MSDN, Learning WCF and Programming WCF Services.
Upvotes: 0
Reputation: 2668
It's not easy to remember all the best practices out there, but here is my advice:
I guess there's much much more, better look for some documentation discussing that.
Upvotes: 4