<?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: Problem loading external XML files from different domain in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486641#M11130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The only solution is to create a 'proxy' in your server (for example a servlet that gets the url) and do the request there.&lt;BR /&gt;&lt;BR /&gt;En español:&lt;BR /&gt;La única solución es crear alguna especie de 'proxy' en tu servidor (por ejemplo un servlet al que le pasas la url) y hacer la petición ahí.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you send me a link with a example? I haven't any experience creating proxy. Besides, is it needed to change my code? How would be the code in Flex to access XML file, using the proxy you refers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;En español:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;¿Podrías enviarme algún enlace con algún ejemplo? No tengo experiencia en crear dicho proxy. ¿Cómo seria el código en Flex para poder descargar el fichero XML que me interesa usando el proxy que comentas? (mi servidor es un w2008 server y utilizo IIS7)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2011 12:32:08 GMT</pubDate>
    <dc:creator>PedroGarcia</dc:creator>
    <dc:date>2011-08-26T12:32:08Z</dc:date>
    <item>
      <title>Problem loading external XML files from different domain</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486638#M11127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing a widget that access to a XML file in an external server to load dynamic information. The application works fine in Adobe Flash Builder in my local machine, but when I upload the application to the web server it doesn't works, and I'm not able to access to the external xml file (in different domain that my server and my machine), and debugging in Mozilla I've seen that the application fault doing a GET of crossdomail.xml file from the external server where is the xml file I'm trying to download. Any idea how to solve that? (as the external server from I'm trying to download the xml file, it's not our server, I can't put there this crossdomain file.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see below a little extract of code used to connect to download a external xml file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; private var loader:URLLoader = new URLLoader();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; private var request:URLRequest = new URLRequest("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejeroCodigos.asmx/ConsultaMunicipioCodigos?CodigoProvincia=30&amp;amp;CodigoMunicipio=&amp;amp;CodigoMunicipioIne=" rel="nofollow" target="_blank"&gt;http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejeroCodigos.asmx/ConsultaMunicipioCodigos?CodigoProvincia=30&amp;amp;CodigoMunicipio=&amp;amp;CodigoMunicipioIne=&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; loader.addEventListener(Event.COMPLETE, onComplete);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; loader.load(request);&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; ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 11:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486638#M11127</guid>
      <dc:creator>PedroGarcia</dc:creator>
      <dc:date>2011-08-25T11:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading external XML files from different domain</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486639#M11128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm developing a widget that access to a XML file in an external server to load dynamic information. The application works fine in Adobe Flash Builder in my local machine, but when I upload the application to the web server it doesn't works, and I'm not able to access to the external xml file (in different domain that my server and my machine), and debugging in Mozilla I've seen that the application fault doing a GET of crossdomail.xml file from the external server where is the xml file I'm trying to download. Any idea how to solve that? (as the external server from I'm trying to download the xml file, it's not our server, I can't put there this crossdomain file.)&lt;BR /&gt;&lt;BR /&gt;You can see below a little extract of code used to connect to download a external xml file:&lt;BR /&gt;&lt;BR /&gt; private var loader:URLLoader = new URLLoader();&lt;BR /&gt; private var request:URLRequest = new URLRequest("&lt;A href="http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejeroCodigos.asmx/ConsultaMunicipioCodigos?CodigoProvincia=30&amp;amp;CodigoMunicipio=&amp;amp;CodigoMunicipioIne=" target="_blank"&gt;http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejeroCodigos.asmx/ConsultaMunicipioCodigos?CodigoProvincia=30&amp;amp;CodigoMunicipio=&amp;amp;CodigoMunicipioIne=&lt;/A&gt;");&lt;BR /&gt;&lt;BR /&gt; loader.addEventListener(Event.COMPLETE, onComplete);&lt;BR /&gt; loader.load(request);&lt;BR /&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; ....&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; instead of using URLLoader, you should try something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;s:HTTPService id="srv" result="srv_resultHandler(event)" resultFormat="xml" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejeroCodigos.asmx/ConsultaMunicipioCodigos"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:request xmlns=""&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CodigoProvincia&amp;gt;30&amp;lt;/CodigoProvincia&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CodigoMunicipio&amp;gt;&amp;lt;/CodigoMunicipio&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CodigoMunicipioIne&amp;gt;&amp;lt;/CodigoMunicipioIne&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/s:request&amp;gt;
&amp;nbsp; &amp;lt;/s:HTTPService&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486639#M11128</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2021-12-11T21:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading external XML files from different domain</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486640#M11129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only solution is to create a 'proxy' in your server (for example a servlet that gets the url) and do the request there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;En español:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;La única solución es crear alguna especie de 'proxy' en tu servidor (por ejemplo un servlet al que le pasas la url) y hacer la petición ahí.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm developing a widget that access to a XML file in an external server to load dynamic information. The application works fine in Adobe Flash Builder in my local machine, but when I upload the application to the web server it doesn't works, and I'm not able to access to the external xml file (in different domain that my server and my machine), and debugging in Mozilla I've seen that the application fault doing a GET of crossdomail.xml file from the external server where is the xml file I'm trying to download. Any idea how to solve that? (as the external server from I'm trying to download the xml file, it's not our server, I can't put there this crossdomain file.)&lt;BR /&gt;&lt;BR /&gt;You can see below a little extract of code used to connect to download a external xml file:&lt;BR /&gt;&lt;BR /&gt; private var loader:URLLoader = new URLLoader();&lt;BR /&gt; private var request:URLRequest = new URLRequest("http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejeroCodigos.asmx/ConsultaMunicipioCodigos?CodigoProvincia=30&amp;amp;CodigoMunicipio=&amp;amp;CodigoMunicipioIne=");&lt;BR /&gt;&lt;BR /&gt; loader.addEventListener(Event.COMPLETE, onComplete);&lt;BR /&gt; loader.load(request);&lt;BR /&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; ....&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 10:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486640#M11129</guid>
      <dc:creator>LuisJimenez</dc:creator>
      <dc:date>2011-08-26T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading external XML files from different domain</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486641#M11130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The only solution is to create a 'proxy' in your server (for example a servlet that gets the url) and do the request there.&lt;BR /&gt;&lt;BR /&gt;En español:&lt;BR /&gt;La única solución es crear alguna especie de 'proxy' en tu servidor (por ejemplo un servlet al que le pasas la url) y hacer la petición ahí.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you send me a link with a example? I haven't any experience creating proxy. Besides, is it needed to change my code? How would be the code in Flex to access XML file, using the proxy you refers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;En español:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;¿Podrías enviarme algún enlace con algún ejemplo? No tengo experiencia en crear dicho proxy. ¿Cómo seria el código en Flex para poder descargar el fichero XML que me interesa usando el proxy que comentas? (mi servidor es un w2008 server y utilizo IIS7)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 12:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486641#M11130</guid>
      <dc:creator>PedroGarcia</dc:creator>
      <dc:date>2011-08-26T12:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading external XML files from different domain</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486642#M11131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just create a asp with a one parameter with the url and do the request in the server. You should do something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Flex -&amp;gt; Send a request to an asp in you server with the url as parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://SERVER/Proxy.asp?URL=YOUR_URL"&gt;http://SERVER/Proxy.asp?URL=YOUR_URL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Proxy.asp -&amp;gt; Do the request here to YOUR_URL and send the result to the flex (for example, get the xml from YOU_URL in a string and send this string to the client)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This method is 'transparent' for the flex. Simply do the call to the 'Proxy' instead of do the call to YOUR_URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could you send me a link with a example? I haven't any experience creating proxy. Besides, is it needed to change my code? How would be the code in Flex to access XML file, using the proxy you refers?&lt;BR /&gt;&lt;BR /&gt;En español:&lt;BR /&gt;¿Podrías enviarme algún enlace con algún ejemplo? No tengo experiencia en crear dicho proxy. ¿Cómo seria el código en Flex para poder descargar el fichero XML que me interesa usando el proxy que comentas? (mi servidor es un w2008 server y utilizo IIS7)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 09:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-loading-external-xml-files-from-different/m-p/486642#M11131</guid>
      <dc:creator>LuisJimenez</dc:creator>
      <dc:date>2011-08-29T09:27:13Z</dc:date>
    </item>
  </channel>
</rss>

