POST
|
for example, if the parameter TestArray looks like this: [{ Id: 1, Name: "hello" }, { Id: 2, Name: "world" }] I have a class Test defined in the code: public Class Test { public int Id { get; set;} public string Name { get; set; } } then in SOE handler, how can deserialize TestArray to an array of Test objects? If using: object[] testArray; bool found = operationInput.TryGetArray("TestArray", out testArray); then how can convert testArray from object[] to Test[] or IList<Test>? thanks for any advice!
... View more
05-17-2013
11:59 AM
|
0
|
1
|
849
|
POST
|
I think SOE property page is what I am looking for. thanks!
... View more
05-14-2013
10:00 AM
|
0
|
0
|
533
|
POST
|
Richard, I got your point now. my case is slightly different. The original thought was just to have a set of function wrappers that call ArcObjects to do a bunch of things, such as spatial/attribute query in a GDB etc, then return the results to web UI. we don't need any MapService or related resources in this case, but since SOE currently can only be enabled in a MapService setting, we so created one with some test data. this SOE is not for site-wise, but for some specific applications, such as the 'fake' map service we have to create in order to use this SOE. although each MapService can enable it, there is no interaction or communication between this SOE and the map service. we just want to call RESTful methods in SOE. so I think manualy deployment is not a problem for this case. I just need to know where is the stable path to put a config file. also this path should be straight-forward if user wants to re-deploy this SOE, say, they re-installed AGS etc. such as where to get the path of deployed SOE file on a GIS server machine at runtime? for now, I can find the path of assembly but it doesn't look easy to find for the client... but your suggestion is very helpful. thanks!
... View more
05-14-2013
07:40 AM
|
0
|
0
|
533
|
POST
|
first of all, thanks Richard and Domenico for your good suggestions. re)Domenico: I was referring to the configs such as Connection_parameters to a ArcSDE GDB for example and other behind-scene configs. I don't think these stuff can be exposed as SOE parameters. and the client they want to be able to make changes in configuration without having to ask us to re-compile/deploy a newer SOE for them. re) Richard: I did a test this morning and found a path that SOE runtime can find a specific file. But this path is not same as of where uploaded SOE file is at ArcGIS Server host machine. I don't quite understand your words here 'ArcGIS Server site which has a large number of machines so having to find and update each one is problematic'. do you mean a distributed server network? so each server machine may have different environment so may cause inconsistent paths for config.txt?
... View more
05-14-2013
07:02 AM
|
0
|
0
|
533
|
POST
|
I have a question very similar to this post: http://forums.arcgis.com/threads/72489-Server-Object-Extension-Location-at-runtime my project has a requirement for the client to change some configuration values whenever they want. so we need to put these in a separate file, and make SOE read these values on-the-fly instead of compiling them together. is there anybody who has a good way to make this happen? i am wondering, if have a separate config file in the same folder as of deployed soe file then in development using current path to read config file, will this work? not sure the way how SOE works. will the AGS host machine keep a copy of SOE file after user uploaded it via AGS manager? if this is the case, I may put the config file there. but where to find this soe file at ArcGIS server machine? from Esri reference, it says "When you finish these steps, the .soe file is uploaded into the server system directory and the SOEs contained in the file are registered with the ArcGIS Server site.". which system directory is here? sorry if any of above doesn't make sense. and appreciate any help!
... View more
05-13-2013
01:42 PM
|
0
|
7
|
1575
|
POST
|
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#search/edit I was looking through the API the other day, and I noticed that on the below page: [HTML]http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#featurelayer[/HTML] It appears to be possible to do the feature layer editing strictly from the client side. This is advantageous for me because I was having issues with the feature layer on the server. I was wondering if there may be good examples of this out there, or anyone that has attempted this? Thanks, Evan
... View more
03-06-2013
11:35 AM
|
0
|
0
|
266
|
POST
|
Is there an event for adding a vertex during a drawing session, e.g., using a draw toolbar user clicks at a location to add a new vertex? I noticed for Edit toolbar, there are events for vertexadd, vertexmove, etc. I did a search, but nothing was found. thanks!
... View more
03-06-2013
11:08 AM
|
0
|
1
|
588
|
POST
|
followup: 1. current JS API doesn't support automatically render m-aware geometry/features on UI. so if you either using MODE_ONDEMAND or writing a query function to load data from ArcGIS Server then add the result features into a feature layer, you won't get any route measure data in feature geometry. even if you set query.returnM = true. (simply because the query class only support those customized request parameters, even if returnM is defined in REST API.) 2. you can get all X,Y,M geometry data via esri.request function by providing all request parameters including returnM; however, you'll have a difficult time adding features into feature layer and render them. the error will be related to geometry, doesn't have getExtent() method etc.., which turns out the geometry of response feature is not valid. what you can do is: for each feature, re-create a brand new geometry object based on its geometry type, then copy the data from returned feature geometry to this newly created geometry object. then, create a new graphic, set its geometry/attributes etc., and add it to the layer. this shall work. I realize just using onExtentChange will do it.
... View more
03-06-2013
10:30 AM
|
0
|
0
|
261
|
POST
|
In my application, there is a m-aware route layer from a feature service. This layer is for reference use, but the front-end does need its mile information along with each vertex's X/Y coordinates. By default, the layer's mode is MODE_ONDEMAND, which is ideal for my app, because am trying to reduce unnecessary remote data request. However, this mode only returns X&Y coordinates in geometry info, how should I do to configure it return M? I know this is doable in MODE_SELECTION via selectFeatures(), but that requires me write extra query functions in several scenarios to make it work similar to MODE_ONDEMAND, for example, need to listen to events, including map_pan, map_zoom, or extentchange. Which I wish I don't have to do this. thanks for all advice!
... View more
03-05-2013
11:11 AM
|
0
|
2
|
708
|
POST
|
Don't know why the issue is still there. Are there any things I should be careful when setting up a proxy on IIS? One more thing, this is not just for print service. It happens for any types of service, for example geometry service. If you are trying to reproject a geometry through a geometry service, and the domain of the geometry service has not been accessed before, the same situation will happen. It will send a call to rest info to decide if CORS is supported or not, but the first request to the geometry service will go through proxy since it doesn't know the result yet from the rest info call.
... View more
02-19-2013
05:43 AM
|
0
|
0
|
406
|
POST
|
well, Jian! First of all, thank you for your very detailed explanation. It helps a lot understanding those behind-scenes. Even though I am pretty sure I used latest proxy package, to give it another shot, I replaced proxy pages with the ones from new download. We will give it more tests, and I wish this issue will be fixed by doing this (I will get back and accept answer then). Appreciate the help from you guys. One more thing, this is not just for print service. It happens for any types of service, for example geometry service. If you are trying to reproject a geometry through a geometry service, and the domain of the geometry service has not been accessed before, the same situation will happen. It will send a call to rest info to decide if CORS is supported or not, but the first request to the geometry service will go through proxy since it doesn't know the result yet from the rest info call.
... View more
02-12-2013
03:59 AM
|
0
|
0
|
406
|
POST
|
the page is here: http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy I think I did use the latest version. but let me double check... I believe my error was due to downloading the proxy from an older help page (which had an older version of the proxy). Once I found the newest version of the proxy and had it set up, it fixed my problem. I just spent a few minutes looking through the new JS API Resources page trying to find the newest version of the proxy for you, but I can't seem to track it down. ESRI really needs to work on getting a search function up and running again!
... View more
02-11-2013
09:20 AM
|
0
|
0
|
1021
|
POST
|
this seems exactly what i am having now. but how to double check whether my proxy is working properly or not? as far as i know, the feature_editing functions run well which means the proxy should be fine. do you have any recollections on what problem your proxy had? and how to fix it? But again, this problem happened before even the proxy is used. Does printing basemaps from 'services.arcgisonline.com' requires a proxy? thanks! Are you certain your proxy is working correctly? I had a similar issue when trying to create a print task to a web map; the first time I clicked the Print button I would get an error, but it would work if I clicked it a second time. It turned out my proxy wasn't set up properly; correcting that fixed the problem.
... View more
02-11-2013
08:52 AM
|
0
|
0
|
1021
|
POST
|
thanks for your reply! using 'Execute Task' web page is fine from my few tries. but note that the problem with my web app map_export only happens at the first time after the app is initially loaded into browser. one interesting thing is, if I tested it on chrome, then load it again on FF, then even if it's loaded into FF as first time, the map_export still functions well. I am wondering whether it's related to starting the printing_service on server. but I set the service running all the time... on proxy, this is something I am not sure whether it's related. This map_export problem happened before I set up a proxy. The reason why I need a proxy is to have feature_editing functions. the problem is there with or without proxy. here is something on proxy setup: In initial proxy configs, there is no 'http://services.arcgisonline.com/ArcGIS/rest/services'. so I added following item: <serverUrl url="http://services.arcgisonline.com/ArcGIS/rest/services/" matchAll="true"></serverUrl> however, when the app is loaded, it still reports: XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://localhost is not allowed by Access-Control-Allow-Origin. is this normal? or something related to the map_export problem? the problem details: "Error executing tool.: Layer "layer0": Unable to connect to map server at http://services.arcgisonline.com/Arc..._Map/MapServer. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)." What happens when you fire the request directly at the REST endpoint? ie.... http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={"mapOptions":{.... is your application actually using a proxy to make the print request?
... View more
02-11-2013
04:59 AM
|
0
|
0
|
1021
|
Title | Kudos | Posted |
---|---|---|
1 | 06-11-2013 07:05 AM | |
1 | 02-07-2013 04:58 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|