1

My organization has specific guidelines on how SOAP envelop should look like. They have specific schema (XSD) the generated SOAP message should conform to. How to design my WCF interface to conform to this schema?

WinFXGuy
  • 1,527
  • 7
  • 26
  • 47

1 Answers1

2

There is a similar question on this here: Generate DataContract from XSD

Have a look at it, I think it is what you are looking for. Bottom line is you should generate the contract from the XSD rather than hand-crafting it to make it conform when the WSDL is generated by WCF.

Community
  • 1
  • 1
Nick Ryan
  • 2,662
  • 1
  • 17
  • 24
  • Thanks Nick! I think this is what I am looking for. I will play with this and see if it works. I also found wscfblue, an open source tool from codeplex as mentioned in comments. http://wscfblue.codeplex.com/ – WinFXGuy Apr 25 '12 at 14:34
  • No prob. Link looks interesting. – Nick Ryan Apr 25 '12 at 14:38
  • Naming can also be fine tuned by properly annotating. Something like this: [DataContract(Name = "Payment", Namespace = "http://schemas.example.com")], but it is a lot of work. – WinFXGuy May 01 '12 at 12:46