English

Problem: Unable to add features with date fields to a feature service and edit the service using the SOAP API

Description

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.

Cause

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.

Solution or Workaround

Include the TimeReference tag in the SOAP API XML schema as shown below:

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.

    Related Information