Requirements:To write a program for use in the LAN, update the table in the database and layer files in SDE based on the user input information (attribute values and coordinates, browsing spatial data is not involved. Only modification to database tables and modification and Addition and deletion of Sde layer elements are required, and the concurrency and efficiency are not high.
Problem:The enige runtime must be installed for codes written using ArcGIS Engine during deployment, which is troublesome. However, ArcGIS is not backward compatible. For example, if you want to deploy a program developed using 10.0 engine on a machine installed with ArcGIS Desktop 9.3, you have to unmount all 9.3 and reinstall a 10.0 environment, which is very troublesome.
Idea:So I had a good idea: Can I use a server to write a WebService using ArcGIS Engine to implement SDE layer editing functions, you can directly call this WebService without installing the ArcGIS environment on the target machine.
Implementation:Take adding elements to a polygon layer as an example. For the implementation code, refer to the attachment content at http://www.kuaipan.cn/file/id_22823997376823436.htm. in sdeeditwswebservice testwscon, the call example is synchronously)
Test:Tested on a machine without the ArcGIS environment installed, successfully added an SDE Element