Select to view content in your preferred language

Does the 2.4 API work with 10.1 Server?

2016
3
02-21-2012 08:49 AM
Labels (1)
RyanCoodey
Frequent Contributor
Quick question, does the 2.4 API work with AGS 10.1, or do we HAVE to move up to the new ArcGIS Runtime SDK for WPF?  Documentation says 10.0 or later...

Thanks a lot!

*UPDATE*
Been testing this and everything was appearing to work fine until I did a find on a feature layer in which I applied its where clause to the layer definition...
                    //Apply where clause for feature layers
                    if (!String.IsNullOrEmpty(layer.Where))
                    {
                        List<LayerDefinition> layerDefinitions = new List<LayerDefinition>();
                        LayerDefinition layerDefinition = new LayerDefinition();
                        layerDefinition.LayerID = layer.LayerInfo.Id;
                        layerDefinition.Definition = layer.Where;
                        layerDefinitions.Add(layerDefinition);
                        FindParameters.LayerDefinitions = layerDefinitions;
                    }

It looks like the URL string generated by the API for the find might have some extra escaped characters... or something... but it doesn't obey the layer definition :(... any ideas?  I'm not using IIS with Server anymore, since its not needed with 10.1, maybe I need to?
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
v2.4 should be able to work with 10.1 Server, except you cannot take advantage of 10.1 features (i.e. Print, GenerateRenderer, DynamicLayer, M and Z support, etc.). What was your where clause like? I can test to see if this is a bug in the client API.

I just know about one issue: GPDate in 10.1 expecting a different JSON, it was not backward compatible with v9.31. I believe 10.1 Pre-Release or Final will have this fix.
0 Kudos
RyanCoodey
Frequent Contributor
Where clause: SGNL_ACTN_DTTM >= DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0) AND SGNL_ACTN_DTTM < DATEADD(day, DATEDIFF(day, 0, GETDATE()), 1)

It is doing date checks, nothing with geoprocessing though... maybe related?  And the query works in the Server's REST web interface, but not when the 2.4 API sends the URL request.  Also, FYI, I am running the 10.1 Pre-Release.

Thanks for looking into this Jennifer!!!
0 Kudos
RyanCoodey
Frequent Contributor
So I guess this wasn't fixed with 10.1 Server final?  Still having the issue...  And I doubt we could get a 2.4.1 fix?

And unfortunately we kind of got screwed with the runtime because even though we own a number of Server and Desktop licenses we do not have any EDN subscriptions (thought we had one but it is expired, and we would need like 10 anyway cause all our developers need to compile the code)...  So I cannot test the runtime even.  Investing in the WPF API so heavily might have been a bad call for us...  Right now we are stuck in-between a rock and hard place because we want to upgrade our server to 10.1, but cannot because of this bug�?�
0 Kudos