about serialization

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
 
K

Konrad Neitzel

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top