AnsweredAssumed Answered

.net SOAP API adding records to table through ArcServer FeatureServerProxy help

Question asked by mike.robb on May 3, 2013
Latest reply on May 7, 2013 by mike.robb
I miss the Context server, ArcObjects in 9.3...

There are Zero examples of Feature Service SOAP.
Delete was easy...
Add is a different story...

I am talking about this:
http://resources.arcgis.com/en/help/soap/10.1/index.html#/Add/01vp0000007v000000/

I have no idea how to get this to work...
Ideas?

I know if this was a FEATURE, i would then use  ESRI.ArcGIS.SOAP.GraphicFeature(), but this is a record for a table that is accessible through a feature service.

I am able to get a PropertySet.propertyarray but what to do with it... to get it to a pDataObjects.

  Dim CatalogServiceProxy As New ESRI.ArcGIS.SOAP.ServiceCatalogProxy         CatalogServiceProxy.Url = CatalogServiceURL          'If CatalogServiceProxy.RequiresTokens() = True Then         '    Dim ArcToken As New ArcServerToken(CatalogServiceURL, UserID, Password)         '    Token = ArcToken.GetToken()         'End If          Dim FeatureServiceProxy As New ESRI.ArcGIS.SOAP.FeatureServerProxy         'FeatureServiceProxy.Url = FeatureServiceURL + "token=" + myToken         FeatureServiceProxy.Url = FeatureServiceURL          Dim inputfields As ESRI.ArcGIS.SOAP.PropertySetProperty() = New ESRI.ArcGIS.SOAP.PropertySetProperty(2) {} ' There are TWO Fields / values         Dim pPropertySet As New ESRI.ArcGIS.SOAP.PropertySet         Dim pDataObjects As New ESRI.ArcGIS.SOAP.DataObjects     Dim pPropertySetPropertyLINCNumber As New ESRI.ArcGIS.SOAP.PropertySetProperty             Dim pPropertySetPropertyTrackStatusID As New ESRI.ArcGIS.SOAP.PropertySetProperty     pPropertySetPropertyTrackStatusID.Key = adofields.name                         pPropertySetPropertyTrackStatusID.Value = "Some value"   inputfields.SetValue(pPropertySetPropertyTrackStatusID, 0)             inputfields.SetValue(pPropertySetPropertyLINCNumber, 1)              pPropertySet.PropertyArray = inputfields   ******* WHAT TO PUT HERE *******   'Store the array, ignore the result at this time.             Dim Result As ESRI.ArcGIS.SOAP.EditResult() = FeatureServiceProxy.Add(1, pDataObjects, Nothing, True, False)

Outcomes