http://www.thinktecture.com/resources/software/wscontractfirst/default.html
There is a nice little addin for this approach.
Also, http://apps.gotdotnet.com/xmltools/xsdobjgen/ has a neat tool that
generates C# or VB classes that will generate the exact data as the XSD
specifies.

Signature
Girish Bharadwaj
http://msmvps.com/gbvb
> hi,
>
> the .net tools are not really suited for that kind of approach, which is called ContractFirst. but it is possible.
>
> first you have to generate some .net types from the schema your webservice has to conform to. use the xsd.exe tool included in the sdk with
the /classes switch.
> use the generated classes as input and return types.
>
> you can further customize the data that goes on the wire with the XmlSerializer attributes, e.g. XmlElement, XmlAttributes and so on. You can
also use the [return:...] attribute to customize the return element name.
Also take a look in ParameterStyle.Bare...
> this should get you started.
>
> ---
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservices/<143A0680-F736-4363-9323-77504A08DDB7@microsoft.com>
> I am developing a webservice which is required to conform to a specific
> schema definition, in terms of input and return parameters. If I set an
[quoted text clipped - 9 lines]
>
> [microsoft.public.dotnet.framework.webservices]