You need to sign in to do that
Don't have an account?
Chris Berg 6
SOAP API WSDL exposes bug in XmlSerializer dating back to 2009
Hey everyone,
the enterprise WSDL in the soap API exposes a well-known bug in the XmlSerializer in .NET. Apparently MS has known about the bug since 2009 and has decided not to fix this. You can read about it here on this link: https://connect.microsoft.com/VisualStudio/feedback/details/471297
To work around this, I tweaked the WSDL with a dummy attribute. Everyone that uses .NET with the Enterprise WSDL is going to hit this problem. Hoping this helps.
<complexType name="ListViewRecord">
<sequence>
<element name="columns" type="tns:ListViewRecordColumn" maxOccurs="unbounded"/>
</sequence>
<xsd:attribute name="tmp" type="xsd:string" /> <!--Added by Chris Berg per bug found in XML Serializer-->
</complexType>
Cheers!
the enterprise WSDL in the soap API exposes a well-known bug in the XmlSerializer in .NET. Apparently MS has known about the bug since 2009 and has decided not to fix this. You can read about it here on this link: https://connect.microsoft.com/VisualStudio/feedback/details/471297
To work around this, I tweaked the WSDL with a dummy attribute. Everyone that uses .NET with the Enterprise WSDL is going to hit this problem. Hoping this helps.
<complexType name="ListViewRecord">
<sequence>
<element name="columns" type="tns:ListViewRecordColumn" maxOccurs="unbounded"/>
</sequence>
<xsd:attribute name="tmp" type="xsd:string" /> <!--Added by Chris Berg per bug found in XML Serializer-->
</complexType>
Cheers!
In my case I was able to alter the generated System.Xml.Serialization.XmlArrayItemAttribute rather than modifying the WSDL.