Problem: Unable to add features with date fields to a feature service and edit the service using the SOAP API
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.
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:
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.
- ArcGIS Resources: Feature service Add method
- ArcGIS Resources: Feature service ApplyEdits method
- ArcGIS Resources: Implementing the ArcGIS for Server SOAP API