Data contract generation is now available in WSCF.blue

by Alex Meyer-Gleaves 1 September 2009 - 2:47 AM

I am pleased to report that data contract generation is now available, and that the functionality has been extended to allow the selection of multiple source XSD or WSDL files. This feature is available in the V1 Beta 2 release, and as always, user feedback and bug reports are welcome.

Data contract generation was one of the features from WSCF.classic that got left behind while the work was done to support WCF in WSCF.blue. Since this was a very popular feature it was important to make sure it was available in WSCF.blue as part of the V1 release.

The generated data contract types are designed to work with the XmlSerializer. WSCF.blue uses the XmlSerializer because the DataContractSerializer is limited in regards to its support for many of the XSD constructs that often appear in contract-first WSDL. Regardless, I would like to add the ability to generate data contract types using the DataContractSerializer. Please let me know if this is a feature you would like to see implemented.

To generate data contracts start by selecting the required XSD or WSDL file in your project. You can select one or more files as required.

Source XSD files.

Right-click your selection and choose Generate Data Contract Code... from the context menu.

Generate Data Contract Code...

You will be presented with the Data Contract Code Generation Options dialog.

Data Contact Code Generation Options

You can choose to create a separate file for each type or keep them all in a single file. The usual list of Code generation options are also available. Click Generate and enjoy your data contracts!

Tags: ,

Categories: Web Services | WSCF

Comments

2/8/2010 11:41:39 AM #

Tobias Manthey

Hi,
I definitly would like to have the choice to generate data contract types using the DataContractSerializer. Even though it is quite limited in the XSD features you can use, you can model nearly any structure you intend to. svcutil /dconly even supports inheritance.
Thanks for your work on WSCF.blue!
Cheers,
Tobias

Tobias Manthey Germany |

2/10/2010 4:52:22 PM #

Alex Meyer-Gleaves

Hi Tobias,

Thanks for the feedback. It is appreciated. Support for the DataContractSerializer is definitely on the roadmap. The current thinking is that we would use it by default, and fall back to the XmlSerializer only when the XSD contains constructs that are not supported by the DataContractSerializer.

Alex.

Alex Meyer-Gleaves Australia |

Comments are closed

About the author

Alex Meyer-Gleaves I'm a software developer living in Australia (that island like continent in the southern hemisphere). I love Microsoft .NET and C#. I hate early mornings, slow drivers and Lotus Notes.

Google Reader Clips

SpringWidgets
RSS Reader
This widget is the staple of our platform. Read all your feeds right here with thisone widget - Supported feeds are OPML, RSS, RDF, ATOM. Watch your favorite Podcastin the embedded Video Player on the Desktop or publish your own video playlist toyour site for others to view!

Recent Comments

Comment RSS

Links

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2008