I added a service link for the SOAP web service. WSDL contains several dateTime elements, such as:
<xsd:element minOccurs="0" name="plannedStartDate" type="xsd:dateTime"/>
<xsd:element minOccurs="0" name="plannedEndDate" type="xsd:dateTime"/>
etc .. VS2013 generated a class with (non-nullable) DateTime properties, but did not add properties such as the scheduled StartDateSpecified. As a result, I have no way to skip any of them. Should I crack the generated code with a null DateTime? properties, it sends null in these fields, and the remote system overrides the values as I expected. I need to completely skip the original elements.
Creating a web link really gives "specific" properties, which allows me to skip sending optional items and all is good.
Any ideas? I would like to use links to services so that everything is consistent in our libraries that consume services.
source
share