Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Is data contract evil?

 
 
Old 06-20-2006   #1 (permalink)
R.A.B


 
 

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


 
 

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


Similar Threads
Thread Forum
Contract of Friendship Chillout Room
Beyond good and evil Gaming


Vista Forums 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 Ltd

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