In our application we are forced to consume several WebServices. In the beginning we used just the \"Add Service Reference\" menu option, in order to create a WCF proxy.
The schema used by the wsdl does not conform to the Data Contract Serializer's Schema Reference.
Problems:
"All elements must be qualified for a schema to be supported by DataContractSerializer".
Your schema omits the elementFormDefault attribute on the tag so the default, "unqualified" is in effect. You need to add the following attribute name/value pair to the
elementFormDefault="qualified"
maxOccurs and minOccurs attributes on
So, remove maxOccurs="unbounded" on the
Add maxOccurs="unbounded" on the
For example,