PROBLEM
Using the SOAP application programming interface (API), the Add method fails to add features with date fields to a feature service while consuming ArcGIS 10.3.1 for Server feature services. Similarly, using the ApplyEdits method to edit the feature service containing date fields returns a SOAPException error.
In the SOAP API, if features contain the date field, the TimeReference tag must be included in the XML schema of the SOAP API. Not including the TimeReference tag causes the SOAP request to fail.
Note:
In older versions of ArcGIS for Server, adding the TimeReference tag is optional.
Code:
<!--REQUIRED-->
<TimeReference>
<TimeZoneNameID>UTC</TimeZoneNameID>
<!--Optional:-->
<RespectsDaylightSavingTime>true</RespectsDaylightSavingTime>
<!--Optional:-->
<RespectsDynamicAdjustmentRules>true</RespectsDynamicAdjustmentRules>
</TimeReference>
Note:
This solution is applicable when using the SOAP API directly. When using an ArcObjects API, such as the Java or .NET SDK, use the TimeReference property instead. For more information, refer to ArcGIS Resources: TimeReference.
Article ID: 000013255
Get help from ArcGIS experts
Download the Esri Support App