contract-first

WCF - contract-first vs. code-first - how to document easily / properly?

Folks, I'm facing this problem here: I'm designing my second larger batch of WCF services which external parties will consume. For the first batch, I used a strict "contract-first" approach: manually created the WSDL and XSD files, and from those, generated my service and data contracts and implemented my WCF service. Worked ok, I was...

Which is the better approach to web services - contract first or contract last?

Which is the better approach to developing web services; contract first or contract last? What are the advantages and disadvantages of each? Which do you have experience with? EDIT This question is about the implementation of a web service (read: SOAP) The question is whether the implementation classes should be coded first and the WSD...

Contract-First SOA with WCF

Hello StackOverflow gurus! This question is more of a probe to discover what people are doing in the community, in practical situations, than a specifically targeted question. I have searched pretty broadly about this, and while I have found a lot of bloggers advocating contract-first service design and some comments backing them up, I h...

Generating Service Contract from a WSDL

I have a WSDL that I need to generate a ServiceContract (OperationContract, DataContract)... I have found a way to do it for ASMX WebServices but can't seem to find how to do it in WCF. I have tried running svcutil AuthPartnerWSDL.wsdl /i /messagecontract /tcv:version35 but the resulting interface doesn't deserialize the call comin...

ASP.NET Web Services code examples

Hello there, I am new to ASP.NET Web services (coming from PHP background) and I now have to develop a project in ASP.NET which will have to be very flexible, which means that I will have to play a lot with XML (schemas, data description etc.). Although I 've pretty much understood the whole concept, I still have a problem familiarizin...