<?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 Problem to download security service layer info. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363022#M9373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to download the layer info from our HTTP/Windows authentication REST service end point URL (e.g., &lt;/SPAN&gt;&lt;A href="http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON"&gt;http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON&lt;/A&gt;&lt;SPAN&gt;). I try to add the credential proxy page to access the page, and the page URL becomes: &lt;/SPAN&gt;&lt;A href="http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON&amp;amp;ProxyURL=" proxy.ashx="proxy.ashx"&gt;http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON&amp;amp;ProxyURL='../proxy.ashx&lt;/A&gt;&lt;SPAN&gt;' . However, it still doesn't work. Am I doing something wrong? How should I use the proxy page to download this layer info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; WebClient jsonClient = new WebClient(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsonClient.OpenReadCompleted += new OpenReadCompletedEventHandler(WebClient_OpenReadCompleted);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsonClient.OpenReadAsync(new Uri(layerRestUrl + "?f=JSON&amp;amp;ProxyURL='../proxy.ashx'", UriKind.Absolute));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 14:05:15 GMT</pubDate>
    <dc:creator>weiliang</dc:creator>
    <dc:date>2011-10-12T14:05:15Z</dc:date>
    <item>
      <title>Problem to download security service layer info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363022#M9373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to download the layer info from our HTTP/Windows authentication REST service end point URL (e.g., &lt;/SPAN&gt;&lt;A href="http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON"&gt;http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON&lt;/A&gt;&lt;SPAN&gt;). I try to add the credential proxy page to access the page, and the page URL becomes: &lt;/SPAN&gt;&lt;A href="http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON&amp;amp;ProxyURL=" proxy.ashx="proxy.ashx"&gt;http://esri.com/ArcGIS/rest/services/ServiceName/MapServer/1?f=JSON&amp;amp;ProxyURL='../proxy.ashx&lt;/A&gt;&lt;SPAN&gt;' . However, it still doesn't work. Am I doing something wrong? How should I use the proxy page to download this layer info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; WebClient jsonClient = new WebClient(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsonClient.OpenReadCompleted += new OpenReadCompletedEventHandler(WebClient_OpenReadCompleted);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsonClient.OpenReadAsync(new Uri(layerRestUrl + "?f=JSON&amp;amp;ProxyURL='../proxy.ashx'", UriKind.Absolute));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 14:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363022#M9373</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-10-12T14:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to download security service layer info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363023#M9374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You want to prefix your service url with the proxy url.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var str = "http://serverapps.esri.com/SilverlightDemos/ProxyPage/proxy.ashx?http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2?f=pjson";
WebClient w = new WebClient();
w.DownloadStringCompleted+= (s, e) =&amp;gt;
{
};
w.DownloadStringAsync(new Uri(str, UriKind.Absolute));
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363023#M9374</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to download security service layer info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363024#M9375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks for your help, Jennifer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a good weekend!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 13:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-to-download-security-service-layer-info/m-p/363024#M9375</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-10-14T13:58:09Z</dc:date>
    </item>
  </channel>
</rss>

