<?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: SOAP SOE Credentials in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754669#M20023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a SOAP SOE that I am trying to access from a .NET console application as a service reference.&amp;nbsp;&amp;nbsp; The SOE resides on an ArcGIS Server that implements security.&amp;nbsp;&amp;nbsp; We are using windows authentication to secure our Map Services.&lt;BR /&gt;&lt;BR /&gt;Below is the code to call a method from the SOE:&lt;BR /&gt;&lt;BR /&gt;using (PrintMap_From_LIS_SOE.ServiceReference3.TE_Coll_Offset_SOEPortClient te = new TE_Coll_Offset_SOEPortClient())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string coords = te.OffsetCoords("N 94TH ST", "E CACTUS RD", 711670, 944759, "E", 140);&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;I was able to access the SOE before we implemented security and now I am getting this message:&lt;BR /&gt;&lt;BR /&gt;The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.&lt;BR /&gt;&lt;BR /&gt;How do I pass credentials to the SOE?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Mele&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mele,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exactly the same problem as you have with a print service and a map service legend that now no longer work once Security is enabled.&amp;nbsp; Did you ever resolve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cameron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 18:55:58 GMT</pubDate>
    <dc:creator>CameronIrvine</dc:creator>
    <dc:date>2011-09-27T18:55:58Z</dc:date>
    <item>
      <title>SOAP SOE Credentials</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754667#M20021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a SOAP SOE that I am trying to access from a .NET console application as a service reference.&amp;nbsp;&amp;nbsp; The SOE resides on an ArcGIS Server that implements security.&amp;nbsp;&amp;nbsp; We are using windows authentication to secure our Map Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the code to call a method from the SOE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using (PrintMap_From_LIS_SOE.ServiceReference3.TE_Coll_Offset_SOEPortClient te = new TE_Coll_Offset_SOEPortClient())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string coords = te.OffsetCoords("N 94TH ST", "E CACTUS RD", 711670, 944759, "E", 140);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to access the SOE before we implemented security and now I am getting this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I pass credentials to the SOE?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 19:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754667#M20021</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2011-02-19T19:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP SOE Credentials</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754668#M20022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We use a custom ASP.NET provider and simply attach a token to the underlying URL of the SOAP service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see where you are using Windows Authentication so my solution will not work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If no one else has an answer to this then you might want to start here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://davenport.sourceforge.net/ntlm.html"&gt;http://davenport.sourceforge.net/ntlm.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that you have to respond to the challenge with credentials.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 11:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754668#M20022</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-02-20T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP SOE Credentials</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754669#M20023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a SOAP SOE that I am trying to access from a .NET console application as a service reference.&amp;nbsp;&amp;nbsp; The SOE resides on an ArcGIS Server that implements security.&amp;nbsp;&amp;nbsp; We are using windows authentication to secure our Map Services.&lt;BR /&gt;&lt;BR /&gt;Below is the code to call a method from the SOE:&lt;BR /&gt;&lt;BR /&gt;using (PrintMap_From_LIS_SOE.ServiceReference3.TE_Coll_Offset_SOEPortClient te = new TE_Coll_Offset_SOEPortClient())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string coords = te.OffsetCoords("N 94TH ST", "E CACTUS RD", 711670, 944759, "E", 140);&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;I was able to access the SOE before we implemented security and now I am getting this message:&lt;BR /&gt;&lt;BR /&gt;The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.&lt;BR /&gt;&lt;BR /&gt;How do I pass credentials to the SOE?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Mele&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mele,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exactly the same problem as you have with a print service and a map service legend that now no longer work once Security is enabled.&amp;nbsp; Did you ever resolve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cameron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 18:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754669#M20023</guid>
      <dc:creator>CameronIrvine</dc:creator>
      <dc:date>2011-09-27T18:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP SOE Credentials</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754670#M20024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cameron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I was able to do to get my console application to call my SOE with security in place on ArcGIS Server.&amp;nbsp;&amp;nbsp; After I added a service reference to my SOE (WSDL) in VS 2010,&amp;nbsp;&amp;nbsp; I went in and changed the security tag in app.config from this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;security mode="None"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INDENT]&amp;lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;message clientCredentialType="UserName" algorithmSuite="Default" /&amp;gt;[/INDENT] &amp;lt;/security&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;security mode="TransportCredentialOnly"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INDENT]&amp;lt;transport clientCredentialType="Ntlm" realm="" /&amp;gt;[/INDENT]&amp;lt;/security&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 19:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754670#M20024</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2011-09-27T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP SOE Credentials</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754671#M20025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Cameron,&lt;BR /&gt;&lt;BR /&gt;Here is what I was able to do to get my console application to call my SOE with security in place on ArcGIS Server.&amp;nbsp;&amp;nbsp; After I added a service reference to my SOE (WSDL) in VS 2010,&amp;nbsp;&amp;nbsp; I went in and changed the security tag in app.config from this:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;security mode="None"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INDENT]&amp;lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;message clientCredentialType="UserName" algorithmSuite="Default" /&amp;gt;[/INDENT] &amp;lt;/security&amp;gt;&lt;BR /&gt;&lt;BR /&gt;To this:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;security mode="TransportCredentialOnly"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INDENT]&amp;lt;transport clientCredentialType="Ntlm" realm="" /&amp;gt;[/INDENT]&amp;lt;/security&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Mele&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mele,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help on this.&amp;nbsp; Seeing that ours is a web service rather than a application I tried to add the transportcredentialonly mode into the web.config of the web service but there was no transport under the transportcredentialonly mode.&amp;nbsp; Any ideas how I would do this with a web service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cameron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 15:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754671#M20025</guid>
      <dc:creator>CameronIrvine</dc:creator>
      <dc:date>2011-09-28T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP SOE Credentials</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754672#M20026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cameron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I talked with our developer who is using our Print Server Object Extension from a WPF application.&amp;nbsp;&amp;nbsp; Within the WPF application, a web reference is created to our WSDL for the SOE.&amp;nbsp; They are calling it with the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string xml = Serializer.SerializeMapInfo(MyMap, txtTitle.Text.Replace("'","''"), cboPaperSize.SelectedIndex);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (var proxy = new LIS_Print_SOE_lis_print())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; AppStatsLogger.Log("LIS", "PDF made", 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; proxy.LIS_Print_PDFCompleted += proxy_LIS_Print_PDFCompleted;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; proxy.UseDefaultCredentials = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; proxy.LIS_Print_PDFAsync(xml);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not an expert on this method to pass the credentials, but you can see that there is a 'UseDefualtCredentials' property.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am assuming that it is using the user's&amp;nbsp; credentials on our city domain to pass to the SOE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this points you in the right direction,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soap-soe-credentials/m-p/754672#M20026</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2011-09-28T18:52:56Z</dc:date>
    </item>
  </channel>
</rss>

