Hello,I try in vain to publish a FeatureService from a MPK, with the ArcGIS JAVA runtime. But I see only the MapService published in the Rest API.My goal is to use this API with a Flex Rest Viewer I need to see this from FeatureService Rest API.Would you tell me what method I should use Java to see this appear in the API FeatureService Rest.Thank youPascal PS : A sample of code is welcome 😉PS : I 've tried this :
ArcGISLocalDynamicMapServiceLayer localMSLayer = new ArcGISLocalDynamicMapServiceLayer("C:\\PROJECT\\mpk\\digsure.mpk");
map.setSpatialReference(com.esri.core.geometry.SpatialReference.create(2154));
LayerList layers = map.getLayers();
layers.add(localMSLayer);
ArcGISLocalFeatureLayer featureLayer1 = new ArcGISLocalFeatureLayer("C:\\PROJECT\\mpk\\digsure.mpk", 7, true);
layers.add(featureLayer1);