Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Is data contract evil?

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 06-20-2006   #1 (permalink)
R.A.B
Guest


 

Is data contract evil?


Hey everybody, im working on a WCF service. The job of the service is
to implimente a industry standard for communication in the powergrid.
This implies that different platforms and enviroments must be able to
use my service.

Now doubt that WCF is conforming to alot of new ws.* standards, but
what about datacontracts..
According to john Cavnar-johnsons blog
(http://pluralsight.com/blogs/johncj/.../04/9742.aspx), the

use of datacontract is restricting the use of my webservice to wcf.


So I guess that I should just specifi my data as i did with the
serializer earlier on.


Do any of you guess know if using datacontract is that restrictive as
he writes?


Besvar »


My System SpecsSystem Spec
Old 06-21-2006   #2 (permalink)
AnilkumarVK
Guest


 

RE: Is data contract evil?

I donot know what exactly your issue is here, but as far as WCF datacontracts
are concerned, they are a simplified version of XMLSerializer which we used
in asmx web services. Using Datacontract you can control the name, order and
the IsRequired attributes of an element, but thats about it. If you want to
do something more sophisticated, then u need to fall back to the
XMLSerializer. You can indicate your need to use the XMLSerializer by
annotating the service interface with [XmlSerializerFormat]. This makes it
much easier for you to move your existing asmx service forward to WCF.
--
Anil
Technical Lead


"R.A.B" wrote:

>
> Hey everybody, im working on a WCF service. The job of the service is
> to implimente a industry standard for communication in the powergrid.
> This implies that different platforms and enviroments must be able to
> use my service.
>
> Now doubt that WCF is conforming to alot of new ws.* standards, but
> what about datacontracts..
> According to john Cavnar-johnsons blog
> (http://pluralsight.com/blogs/johncj/.../04/9742.aspx), the
>
> use of datacontract is restricting the use of my webservice to wcf.
>
>
> So I guess that I should just specifi my data as i did with the
> serializer earlier on.
>
>
> Do any of you guess know if using datacontract is that restrictive as
> he writes?
>
>
> Besvar »
>
>

My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beyond good and evil pyronox Gaming 3 08-15-2008 02:26 PM
Can i get them back from the evil recycle bin? Star Vista file management 8 02-01-2008 02:09 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51