.Net webservice and java client little endian/big endian

P

pallavi

Hello

I have a .Net webservice and java client. In my .Net webservice I want
to serialze my object into inline binay data(byte []) inside the soap
message as follows

byte[] binaryMessage;
try{
MemoryStream objMs = new MemoryStream();
BinaryFormatter objBF = new BinaryFormatter();
objBF.Serialize(objMs, ndnt);
binaryMessage = objMs.GetBuffer();
}
catch (Exception ex)
{
//write to EventLog
throw(ex);

proxy.sendData(binaryMessage);
}

Now in .Net byte[] serialization is in little-endian format.

My client being java - the java VM byte format is big endian. So I am
thinking if I try to deserialize the object in the java client I might
get incorrect results. Is my assumption correct?

Also is there a way in .Net to serialize the object in big-endian
format.



pallavi
 

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

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top