about serialization

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hi!

I know when to use BinaryFormatter and SoapFormatter but I just wonder of
curiosity
is it possible to use a SoapFormatter when you really should have used a
BinaryFormatter and the other way around meaning that can you use a
BinaryFormatter when you really should have used a SoapFormatter ?

Use BinaryFormatter when the app is a based on .NET framework If not use
SoapFormatter.
If sending something on the network use SoapFormatter.

//Tony
 
Hi Tony,

I am also wondering what you try to ask. Of course: You can use whatever
serialisation you want as long as everyone who has to do with that data
knows how to read or write it.

So you cannot use the BinaryFormatter to send a message to someone who
expects you to use a SoapFormatter / data in XML Format.

See more about SOAP on http://en.wikipedia.org/wiki/SOAP

With kind regards,

Konrad
 
I know when to use BinaryFormatter and SoapFormatter but I just wonder of
curiosity
is it possible to use a SoapFormatter when you really should have used a
BinaryFormatter and the other way around meaning that can you use a
BinaryFormatter when you really should have used a SoapFormatter ?

Use BinaryFormatter when the app is a based on .NET framework If not use
SoapFormatter.
If sending something on the network use SoapFormatter.

binary - fast, only .NET
SOAP - slow, any technology

You can see when what is optimal.

You can not use binary with non-.NET, but you can
use SOAP with .NET!

Arne
 
Back
Top