We are migrating from 6.5 to 7.1. Most of the existing code is working in 7.1 without any changes but there is one service which is exposed as a web service thats not working. Below is the error that its throwing out.
System.InvalidOperationException: There is an error in XML document (868, 33). —> System.InvalidCastException: Cannot assign object of type __InsertFlags to an object of type __InsertFlags2.
The difference in the responses is :
The request and resonse documents have InsertFlags. So in the wsdl the request object is named InsertFlags and referenced to InsertFlags and the response document is named InsertFlags and referencing to InsertFlags2 (which I believe to keep them separate). Below is the specific lines of the wsdl.
<xsd:element name=“InsertFlags” nillable=“true” type=“tns:__InsertFlags” minOccurs=“0”/>
<xsd:element name=“InsertFlags” nillable=“true” type=“tns:__InsertFlags2” minOccurs=“0”/>
Has anyone been in this situation and if so any help/suggestions would be welcome. If possible we want to avoid changing the code as much as possible.