I tried today to generate a proxy with the entreprise.wsdl
file (also tried with partner.wsdl
) and noticed that the file was 'not valid'.
When generating the proxy, everything seems to be okay, but at runtime (I'm writing a client in C#, but this probably doesn't play any role) an exception is raised on this line:
SForceService service = new SForceService();
The error is:
An unhandled exception of type 'System.InvalidOperationException'
occurred in System.Xml.dll Additional information: Temporäre Klasse
kann nicht generiert werden (result=1).error CS0030: Eine Konvertierung vom Typ
'Entreprise.ListViewRecordColumn[]' in
'Entreprise.ListViewRecordColumn' ist nicht möglich.error CS0030: Eine Konvertierung vom Typ
'Entreprise.ListViewRecordColumn[]' in
'Entreprise.ListViewRecordColumn' ist nicht möglich.error CS0029: Eine implizite Konvertierung vom Typ
'Entreprise.ListViewRecordColumn' in
'Entreprise.ListViewRecordColumn[]' ist nicht möglich.error CS0029: Eine implizite Konvertierung vom Typ
'Entreprise.ListViewRecordColumn' in
'Entreprise.ListViewRecordColumn[]' ist nicht möglich.
The translation in english should be something like this:
An unhandled exception of type 'System.InvalidOperationException'
occurred in System.Xml.dll. Additional information: A temporary class
cannot be generated (result=1)error CS0030: An implicit conversion from type
"Entreprise.ListViewRecordColumn[]' to
'Entreprise.ListViewRecordColumn' is not possible.error CS0030 : An implicit conversion from type
'Entreprise.ListViewRecordColumn[]' to
'Entreprise.ListViewRecordColumn' is not possible.error CS0029: An implicit conversion from type
'Entreprise.ListViewRecordColumn' to
'Entreprise.ListViewRecordColumn[]' is not possible.error CS0029: An implicit conversion from type
'Entreprise.ListViewRecordColumn' to
'Entreprise.ListViewRecordColumn[]' is not possible.
using an old wsdl file (downloaded from Salesforce last year) fixed the problem, but this is not a solution for me since I created a lot of new objects that are not in this old wsdl file…
Does anybody have the same problem? How to fix this?
Best Answer
Looks like it could be a bug in .NET's XML serializer:
https://help.salesforce.com/HTViewSolution?id=000205824&language=en_US