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

相关信息
Article ID: 45591
Bug Id: N/A
Software:
ArcGIS for Server 10.3.1
ArcObjects SDK for Java Windows 10.2, 10.3.1, 10.2.1, 10.2.2
ArcObjects SDK for the Microsoft .NET Framework 10.2, 10.3.1, 10.2.2, 10.3, 10.2.1
Platforms: N/A

问题描述
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.
已邀请:

EsriSupport

赞同来自:

解决方案
Include the TimeReference tag in the SOAP API XML schema as shown below:
<!--REQUIRED-->
<TimeReference>
<TimeZoneNameID>UTC</TimeZoneNameID>
<!--Optional:-->
<RespectsDaylightSavingTime>true</RespectsDaylightSavingTime>
<!--Optional:-->
<RespectsDynamicAdjustmentRules>true</RespectsDynamicAdjustmentRules>
</TimeReference>


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.



    其它相关参考
    1. BUG-000088858
    2. ArcGIS Resources: Feature service Add method
    3. ArcGIS Resources: Feature service ApplyEdits method
    4. ArcGIS Resources: Implementing the ArcGIS for Server SOAP API


    创建及修改时间
    Created: 10/1/2015 Last Modified: 12/4/2015
    原文链接
    http://support.esri.com/en/kno ... 45591

    要回复问题请先登录注册