function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rolf HerbertRolf Herbert 

c# (Visual Studio) WSDL data types are not working

Hi all,

I am using a WSDL that was provided to me by the original developer of a Salesforce app that I am required to write into.

I have attached the WSDL as a reference to the c# project and all seems well. I can connect and perform update/create/search functions with no bother.

The trouble comes when certain XSD data types are specified by the WSDL.

If XSD:DATE is specified the compiler will only allow a c# datetime object to be used but Salesforce ignores it (I presumme because it has a time portion). No error, no reported problems it just nulls that column.

If XSD:BOOLEAN is specified the same thing happens, I can only specifiy true/false for the project to compile but Salesforce ignores it and enters null for the column.

If I manually change the field stypes to XSD:STRING and use appropriate strings (1/0, yyyy-mm-dd) all is fine, but that surely is not the right answer!

Anyone have any ideas..?

Thanks