I am working with a SOAP web service from a third party. I have generated objects using the XSD.exe
tool. The problem is that I need to send an XmlElement
that I'm serialising. Their service is throwing an error because it expects all boolean
values to be represented by 1 and 0 instead of true and false.
I know I can use a custom serializers such as this: IXmlSerializable Interface or this: Making the XmlSerializer output alternate values for simple types but they involve me changing the code generated by the Xsd.exe
tool and would be difficult to maintain every time there was an upgrade.
Am I missing something or is there a another way to achieve what I'm looking for?