开发者

Sanitizing incoming XML via WCF

I am consuming a Java webservice from .net using WCF.

I am getting an error on deserialization of a response from the 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 get the provider to change it,开发者_运维技巧 so I would like to sanitize the null out before WCF deserializes the return message.

Any Ideas?

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


Just a thought. Is this a character encoding issue i.e. is the deserializer using an incorrect encoding when trying to deserialize the message? This may result in what appear to be nulls, but are in fact part of the underlying character encoding.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜