Sanitizing incoming XML via WCF

I am using Java Web Service from .net using WCF.

I am getting response deserialization error from Java service

The byte 0x00 is not valid at this location.  Line 1, position 725.

      

I know from some research that this is an incorrectly encoded null, but I am unlikely to ask him to change it, so I would like to clear the null before WCF deserializes the return message.

Any ideas?

I am using C #, but answers in any CLR language will do.

+2


a source to share


1 answer


Just a thought. Is this a character encoding issue, i.e. is the deserializer using the wrong encoding when trying to deserialize a message? This can lead to what appears to be null, but is actually part of the base character encoding.



0


a source







All Articles