arcgis server 10.0上发布成功的服务如何调用代码实现删除?

admin rest api 10不支持delete,10.1支持;有没有其他方法能编程删除10.0的服务? python和arcengine或js都行~求助
已邀请:

朱新颖

赞同来自: 求知gis

Engine的话使用IServerObjectAdmin.DeleteConfiguration方法,10.0版本(注意:10.1版本不是通过下面方式连接的)可以使用下面代码获取IServerObjectAdmin。
IGISServerConnection pServerConn = new GISServerConnectionClass();
            pServerConn.Connect("w2008s10b-makl");
            IServerObjectAdmin5 pServerAdmin = pServerConn.ServerObjectAdmin as IServerObjectAdmin5;
            return pServerAdmin;

要回复问题请先登录注册