I trying to develop WebService which main purpose is enable editing data. My Web Service get as param information about records, tables etc. Code looks like below:
IFeatureWorkspace ifw = null;
IWorkspaceEdit iwep = null;
try {
ifw = new IFeatureWorkspaceProxy(new IVersionProxy(currentUserVersion));
iwep = new IWorkspaceEditProxy(ifw);
iwep.startEditing(false);
iwep.startEditOperation();
performOperation(mergeData, ifw, iwep);
//this method make store on records
} catch (AutomationException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
iwep.stopEditOperation();
iwep.stopEditing(true);
} catch (AutomationException e) {
} catch (IOException e) {
}
}
Everything works fine for one single request, but above code is horrible slow for multirequest for different version. Because different people has own version which is used to editing. I think the most time take startEditOperation and startEditing. Everything starts as capability of MXD file. Anyone can give me a solution how to using soe web services give capablities for editing data which will have a quite good performance?