How do I pass an array as a parameter to a service

623
1
Jump to solution
10-14-2013 12:13 PM
MichaelEber
Occasional Contributor
I'm new to ArcGIS service programming and would like to get some information on a specific issue.

I have a schema defined in the database for Simple_Point (passing a single map point to or from the service) and Simple_Polyline (passing a single PolyLine to or from the service) 

I have two parameters I want to pass and one parameter to return:

The first parameter is simple .. a single Point.  But I am having trouble finding anything on passing an array into or out of a service.  The second parameter is an array of Points and the return array is an array of PolyLines.

Are these parameters defined as FeatureSets with a 1:1 ratio between the points and Features added??  (ie. 10 points become 10 Features inside a FeatureSet)

I could use help as quickly as possible!

Thanks
0 Kudos
1 Solution

Accepted Solutions
MichaelEber
Occasional Contributor
ANSWER:
  The base type is all that is needed.  It builds up the objects as records in a recordset.
  So if I have one or 100 points, I just use the Point schema.

View solution in original post

0 Kudos
1 Reply
MichaelEber
Occasional Contributor
ANSWER:
  The base type is all that is needed.  It builds up the objects as records in a recordset.
  So if I have one or 100 points, I just use the Point schema.
0 Kudos