<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get layer ID from a SOAP connection in SOE in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-layer-id-from-a-soap-connection-in-soe/m-p/251510#M6479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;((MapServerXXXSublayer) layer).getLayerDescription().getID();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 13:34:35 GMT</pubDate>
    <dc:creator>MathieuVILLEMONT1</dc:creator>
    <dc:date>2017-02-03T13:34:35Z</dc:date>
    <item>
      <title>How to get layer ID from a SOAP connection in SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-layer-id-from-a-soap-connection-in-soe/m-p/251509#M6478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have got a Java SOE that access several MapServices using SOAP.&lt;/P&gt;&lt;P&gt;I would like to get the layer definition of each layer of the MapService in order to retrieve their IDs.&lt;/P&gt;&lt;P&gt;I'm not quite sure how to do that.&lt;/P&gt;&lt;P&gt;Currently I'm able to get the MapServerLayer like this :&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;MapServerLayer msl = (MapServerLayer) this.currentRequestServerContext
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;.createObject(MapServerLayer.getClsid());
try {
&amp;nbsp; msl.serverConnect(agsServerObjectName,
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;mapServer.getDefaultMapName());
} catch (Exception ex) {
&amp;nbsp; log.error("Problem connect to service: " + url + ". Error detail:",
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ex);
&amp;nbsp; return null;
}

Thanks&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-layer-id-from-a-soap-connection-in-soe/m-p/251509#M6478</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2021-12-12T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get layer ID from a SOAP connection in SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-layer-id-from-a-soap-connection-in-soe/m-p/251510#M6479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;((MapServerXXXSublayer) layer).getLayerDescription().getID();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 13:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-layer-id-from-a-soap-connection-in-soe/m-p/251510#M6479</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2017-02-03T13:34:35Z</dc:date>
    </item>
  </channel>
</rss>

