Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to start ?
Message
De
20/10/2009 17:18:25
 
 
À
20/10/2009 05:28:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
01429720
Message ID:
01430232
Vues:
65
> I'm curious about the differences between the WCF an ASP.NET implementations of web services in particular I've also had no occasion to do anything practical with this but do see one thing in WCF I like better:
>ASP.NET, as standard, just serializes *all* public members of an object. WCF, OTOH, has the [DataContract] and [DataMember] attributes which would allow me to be more selective in what gets serialized (e.g. including private variables). But I guess none of this changes the use of the DataSet.GetXML() method.....


I'm hoping to play with this stuff soon, but don't know if I'll be able to figure out the differences in implementations between WCF and ASP.NET. I probably don't really care; I just want my web services to be able to be called from any platform (and it sounds like that's not a problem).

The WCF serialization would only affect me if I decide to NOT go the DataSet.GetXml() route with whatever applications I'm going to be building next ... but I think, for cross-platform compatibilty, DataSet.GetXml() might be the easiest/best option. I don't really know for sure ... having been stuck in my current mode of thinking for 7 years, I probably should research some of this a bit more extensively while I have the time. <g>

~~Bonnie



>
>>And here's what I'm curious about (haven't had time to play with any of this in the past year or two, but plan to look into it now):
>>
>>I've always constructed my asmx web services to accept and return simple datatypes, such that they are compatible with different platforms ... IOW, they can be consumed by non-.NET applications. Consequently, when I returned a DataSet, I did *not* return a serialized DataSet class, but returned the data itself, serialized into XML ... return MyDataSet.GetXml(); ... which is simply a string of simple XML that can be read and utilized by any app, not just a .NET app.
>>
>>Given the above scenario, and assuming that I want the same sort of interopability with other platforms, I'm assuming that the main thing that WCF gives me is the flexibility of using my service in different ways (Remoting and queuing) ... even if I want to keep my simply datatypes. Is this a fair assumption to make?
>>
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform