|
POST
|
Cameron, I talked with our developer who is using our Print Server Object Extension from a WPF application. Within the WPF application, a web reference is created to our WSDL for the SOE. They are calling it with the following code: string xml = Serializer.SerializeMapInfo(MyMap, txtTitle.Text.Replace("'","''"), cboPaperSize.SelectedIndex); using (var proxy = new LIS_Print_SOE_lis_print()) { AppStatsLogger.Log("LIS", "PDF made", 1); proxy.LIS_Print_PDFCompleted += proxy_LIS_Print_PDFCompleted; proxy.UseDefaultCredentials = true; proxy.LIS_Print_PDFAsync(xml); } I am not an expert on this method to pass the credentials, but you can see that there is a 'UseDefualtCredentials' property. I am assuming that it is using the user's credentials on our city domain to pass to the SOE. Hope this points you in the right direction, Mele
... View more
09-28-2011
11:52 AM
|
0
|
0
|
1178
|
|
POST
|
Cameron, Here is what I was able to do to get my console application to call my SOE with security in place on ArcGIS Server. After I added a service reference to my SOE (WSDL) in VS 2010, I went in and changed the security tag in app.config from this: <security mode="None"> [INDENT]<transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" />[/INDENT] </security> To this: <security mode="TransportCredentialOnly"> [INDENT]<transport clientCredentialType="Ntlm" realm="" />[/INDENT]</security> Hope this helps. Mele
... View more
09-27-2011
12:16 PM
|
0
|
0
|
1178
|
|
POST
|
Duncan, Thanks. I had never heard of that interface. I will give it a try. It does sound promising. Mele
... View more
09-08-2011
08:45 AM
|
0
|
0
|
575
|
|
POST
|
I am using append from ESRI.ArcGIS.DataManagementTools namespace to update a feature class in SDE with features from another SDE Feature class. The program works fine as long as there is not an edit operation ocurrning on the Feature Class being appended to. I can tell if the workspace is being edited, but that is not the level that I need to know at. I can also use ISchemaLock, but that does not help in this case as it is not a schema edit. Is there a way via ArcObjects to determine if a Feature Class is being written to? Thanks, Mele
... View more
09-08-2011
07:55 AM
|
0
|
2
|
908
|
|
POST
|
By upgrading the IServerObjectExtensionType Interface to IServerObjectExtensionType3, I found there is a "get_ExtensionEnabled" method.:cool: IServerObjectExtensionType3 serverObjectExtensionType = (IServerObjectExtensionType3)enumServerObjectExtensionType.Next(); while (serverObjectExtensionType != null) { bool enabled = soConfig.get_ExtensionEnabled(serverObjectExtensionType.Name); MessageBox.Show(soConfig.Name + " "+ serverObjectExtensionType.DisplayName + "Enabled:" + enabled ); soConfig = (IServerObjectConfiguration2)enumConfigs.Next(); }
... View more
07-28-2011
07:06 AM
|
0
|
0
|
392
|
|
POST
|
I am trying to determine if the Feature Access capablity has been enabled on an IServerObjectAdmin2. I can get a list of the IServerObjectExtensionTypes as shown below, but how can I tell if the IServerObjectExtensionType is enabled? private static void listServices() { IServerObjectAdmin2 soAdmin = (IServerObjectAdmin2)gisServerConnection.ServerObjectAdmin; IEnumServerObjectConfiguration enumConfigs = soAdmin.GetConfigurations(); enumConfigs.Reset(); IServerObjectConfiguration soConfig = enumConfigs.Next(); while (soConfig != null) { IServerObjectConfigurationStatus soConfigSatus = soAdmin.GetConfigurationStatus(soConfig.Name, soConfig.TypeName); serviceTable.Rows.Add(soConfig.Name, soConfig.TypeName); IEnumServerObjectExtensionType enumServerObjectExtensionType = soAdmin.GetExtensionTypes(soConfig.TypeName); enumServerObjectExtensionType.Reset(); IServerObjectExtensionType serverObjectExtensionType = enumServerObjectExtensionType.Next(); while (serverObjectExtensionType != null) { MessageBox.Show(serverObjectExtensionType.Name); serverObjectExtensionType = enumServerObjectExtensionType.Next(); } soConfig = enumConfigs.Next(); } } Thanks for your assistance, Mele
... View more
07-27-2011
01:07 PM
|
0
|
1
|
814
|
|
POST
|
I have published a Toolbox to ArcGIS Server as a geoprocessing service and am trying to access the service via .NET. I get an error message telling me the job has failed after running the following code: Geoprocessor gp = new Geoprocessor(); gp.AddToolbox(@"http://vmascgis01/arcgis/services;PrintLISMap"); gp.OverwriteOutput = true; IVariantArray parameters = new VarArrayClass(); parameters.Add(@"D:\workspace\Temp\Untitled.mxd"); parameters.Add(@"D:\workspace\Temp\Base_Map.lyr"); parameters.Add(@"D:\workspace\Temp\new.mxd"); IGeoProcessorResult result; result = (IGeoProcessorResult)gp.Execute("AddLayerToMap", parameters, null); The ArcGIS Server has ArcGIS Server security in place and this looks like the problem because if I access the toolbox directly via its location on disk, the code works. How do I pass credentials to an ArcGIS Server Geoprocessing Service?
... View more
06-09-2011
08:07 AM
|
0
|
1
|
891
|
|
POST
|
I am using ArcObjects to delete features and append features to a File Geodatabase. The last time this process ran, I got the following error message: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" The Feature Class was corrupt after the processs. I reran the process in ArcCatalog using ArcToolBox and on the the second attempt, I was able to successfully delete and append features. Any ideas on what causes this error and more importantly, how to prevent it in the future? Thanks, Mele
... View more
04-07-2011
08:10 AM
|
0
|
2
|
5329
|
|
POST
|
I have a SOAP SOE that I am trying to access from a .NET console application as a service reference. The SOE resides on an ArcGIS Server that implements security. We are using windows authentication to secure our Map Services. Below is the code to call a method from the SOE: using (PrintMap_From_LIS_SOE.ServiceReference3.TE_Coll_Offset_SOEPortClient te = new TE_Coll_Offset_SOEPortClient()) { string coords = te.OffsetCoords("N 94TH ST", "E CACTUS RD", 711670, 944759, "E", 140); } I was able to access the SOE before we implemented security and now I am getting this message: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'. How do I pass credentials to the SOE? Thanks, Mele
... View more
02-19-2011
11:07 AM
|
0
|
5
|
1416
|
|
POST
|
Here is what I ended up doing. private static IGPFieldMapping MapFields(string strinFC, string stroutFC) { IGPUtilities gputilities = new GPUtilitiesClass(); IDETable inTableA = (IDETable)gputilities.MakeDataElement(strinFC, null, null); IDETable inTableB = (IDETable)gputilities.MakeDataElement(stroutFC, null, null); IArray inTables = new ArrayClass(); inTables.Add(inTableA); inTables.Add(inTableB); IGPFieldMapping fieldmapping = new GPFieldMappingClass(); fieldmapping.Initialize(inTables, null); IFields fields = fieldmapping.Fields; return fieldmapping; } Here is another example from ESRI Geoprocessing field mapping: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/00010000042p000000.htm
... View more
02-10-2011
05:20 AM
|
0
|
0
|
970
|
|
POST
|
From what Support said, a GPTool is being worked on that will provided this functionality
... View more
02-09-2011
02:54 PM
|
0
|
0
|
375
|
|
POST
|
I changed my code to pass in a string to the Feature Class (.sde file) and it works much faster. Geoprocessor does not seem to operate as well on IFeatureClass as it does on a string. Mele
... View more
02-09-2011
02:53 PM
|
0
|
0
|
767
|
|
POST
|
I would like to be able to duplicate the Field Mapping that is generated when using the "NO_TEST" option in the schema type parameter for the Append Tool in ArcCatalog in .NET I am using ESRI.ArcGIS.DataManagementTools.Append and would like to be able create the same type of field mapping that is used by the GUI so that the code makes it "best guess" at field mapping if the fields are in a different order within the input and output Feature Classes. I see that there is a IGPFieldMapping Interface, but have not seen examples that are of use to my case. Let me know if you have done anything like this in .NET Thanks, Mele
... View more
02-02-2011
07:12 AM
|
0
|
2
|
1203
|
|
POST
|
I am using ESRI.ArcGIS.DataManagementTools.Append and ESRI.ArcGIS.DataManagementTools.DeleteFeatures in .NET to manage feature classes in a File Geodatabase. I am deleting features from the File Geodatabase than appending new ones from an ArcSDE Feature Class. If the schemas do not match, I would like to stop the program before Delete Features. The Append tool has some way to check the schemas and I would like to duplicate this in code before deleting any features. If the append Tool can't append, I would like to not delete any features. Any suggestions on how to check the schemas of the input and output Feature Classes to determine if they match according the criteria of the Append Tool? Thanks, Mele
... View more
02-02-2011
07:05 AM
|
0
|
1
|
870
|
|
POST
|
I am using ESRI.ArcGIS.DataManagementTools.DeleteFeatures to delete from a File Geodatabase using the Geprocessor object in .NET and it is very slow (minutes). The same code run against an ArcSDE Geodatabase is fast (seconds). The GDB is ArcGIS 10 as is the code I am building my .NET app with. Any thoughts on why this could would run slower against a File Geodatase? Thanks, Mele Below is the code I am using to call DeleteFeatures. ESRI.ArcGIS.Geoprocessor.GeoprocessorGP = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); public static void DeleteFCFeatures(IFeatureClass FC) { try { DeleteFeatures deleteFeatures = new DeleteFeatures(); deleteFeatures.in_features = FC; ITrackCancel Itrack = null; RunTool(GP, deleteFeatures, Itrack); } catch (Exception ex) { Console.WriteLine(ex.Message + "\n\n" + ex.StackTrace); } } private static void RunTool(Geoprocessor geoprocessor, IGPProcess process, ITrackCancel TC) { try { geoprocessor.Execute(process, null); processGPMessages(geoprocessor); } catch (Exception ex) { Console.WriteLine(ex.Message); processGPMessages(geoprocessor); } }
... View more
01-27-2011
08:16 AM
|
0
|
2
|
2791
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-27-2026 09:23 AM | |
| 1 | 02-26-2026 06:47 AM | |
| 3 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|