gln
gln

Reputation: 1031

desialize object in silverlight from server

I have a winform application (C# framework 2.0) which generates object information by serializung into xml files. these files I want to upload into the server in silverlight application (c# VS 2010). the silverlight application use the objects in the XML.

  1. how to upload these files and store them in the server with silverlight.
  2. how to deserialize these objects into silverlight code. (how to get the objects from the server.

please ATTACH CODE example.

10x!

Upvotes: 1

Views: 88

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1063864

If you handling the comms yourself, since Silverlight supports XmlSerializer, this should still be pretty easy; just use Deserialize.

However, the easier option is probably to use a web-service reference (or perhaps a web-reference) - since this will handle transferring the type-model (or rather: a shallow interpretation of the type=model) for you - in both directions.

Upvotes: 3

Related Questions