Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML hexBinary to byte[]
Message
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01165151
Message ID:
01166653
Views:
17

This is what seems to be happening (and I couldn't find any documentation on it). ReadXML converts the hexBinary data to Base64Binary before it is stored in the byte[].


Um, that's why I indicated that you might need a different XmlReadMode.

Basically, if your XSD is correct, it looks like it's not being referenced, IOW the reader does not know for sure how to treat the payload from the incoming XML. It's probably doing the best it can in "auto" mode to figure this out. If you used a different XmlReadMode, maybe it would be better behaved.

That's about all I can tell you. I don't generally do SOAP handling using MS objects. My main interest in the topic is potential disconnects between data types in MS and non-MS systems, not the inner workings of the MS classes <s>.

Generally you'll find that this is getting better, and generally everybody tries to handle SOAP (and other) data types correctly, but there are still many xplat issues. With binary and encoded data, as you know, it is especially important to get this right.

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform