arcgissamples\soe\—ArcObjects 10.4 Help for Java | ArcGIS for Desktop
Simple SOAP SOE Sample
/* Copyright 2015 ESRI
* All rights reserved under the copyright laws of the United States
* and applicable international laws, treaties, and conventions.
* You may freely redistribute and use this sample code, with or
* without modification, provided you include the original copyright
* notice and use restrictions.
* See the use restrictions at <your ArcGIS install location>/DeveloperKit10.4/userestrictions.txt.
package arcgissamples.soe;

import com.esri.arcgis.interop.extn.ArcGISExtension;

public interface IJavaSimpleSOAPSOE {
    public int getLayerCountByType(String type) throws Exception;