asp.net mvc 2 - Silverlight application with binary xml -
my silverlight + asp.net mvc application following:
1) silverlight client sends request via httpwebrequest.
2) asp.net mvc connects sql server database (stored procedure) , gets xml data sends raw xml client (no web services or wcf).
3) silverlight client receives xml , deserializes xmlserializer class.
4) deserialized object manipulated, serialized , sent server.
5) asp.net mvc receives xml , directly sends database (stored procedure) shreded , saved appropriate table(s).
is acceptable architecture? problem approach be? also, sl 3 there seems option use binary xml, don't see information how use without wcf. found wcf quite heavy, deliberately avoid it. me, asp.net mvc based restful architecture seems more appealing. above description may not restful, think quite close. thoughts welcome.
i think wcf simplify scenario , open many options maybe don't need right useful in future (for ex. if decide add kind of client, or decide implement security mechanism).
the "binary xml" binding works pretty silverlight clients (i use lot) , reduces size of serialized objects. reason alone worth use wcf.
(by way wcf included in framework, thing you'll add bit of complexity in code -but not really-)
Comments
Post a Comment