Hi all,<div><br></div><div>Finally I&#39;ve decided to modify the openlayers call.</div><div>Now I make the XmlHttpRequest.open against the same domain (The IIS served application), and there I redirect the call to geoserver, and then return the result to the client..</div>
<div><br></div><div>I&#39;ve modifyed the OpenLayers.js doing this:</div><div><div><br></div><div> sUrl = &quot;test.aspx?param=&quot; + escape(sUrl); //Force the call to same domain</div><div> this._object.open(sMethod, sUrl, bAsync, sUser, sPassword);</div>
<div><br></div><div>And I&#39;ve created a new page called test hosted in IIS, that catch the request:</div><div><div>If Request.QueryString.Count &lt;&gt; 0 Then</div><div>            Dim wsResponse As XmlDocument = New XmlDocument()</div>
<div>            Dim param As String</div><div>            param = Request.QueryString(&quot;param&quot;) &#39;In the param we have the GeoServer URL</div><div>            Dim url As String = param</div><div>            wsResponse.Load(url)</div>
<div>            Dim XMLDocument As String = wsResponse.InnerXml</div><div>            Response.Clear()</div><div>            Response.ContentType = &quot;text/xml&quot;</div><div>            Response.Write(XMLDocument) &#39;We return the result from GeoServer</div>
<div>        End If</div><div><br></div><div>And doing that, I can do the XMLHttpRequest and get the response from GeoServer.. </div><div><br></div><div>Any advice/problem with doing in that way?</div><div><br></div><div>
Thanks!</div><div><br></div></div></div><div><div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="gmail_quote"><div class="im">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, Nov 19, 2009 at 06:03:23PM +0100, JuKiM wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve been testing in IE.. If I create a &#39;test.html&#39; file in a folder under<br>
&gt; IIS, I get an error of denied access/resource not available.. But if I copy<br>
&gt; that file in the www folder of geoserver, then everything works ok.. This is<br>
&gt; quite logical, because IIS is running on port 80, and geoserver in 8080<br>
&gt; (They are different hosts)...<br>
<br>
<br>
&gt; Then when I declare the proxy, the IIS&#39;s test.html, the response i get is<br>
&gt; empty..<br>
<br>
</div>Your *IIS* needs the proxy. GeoServer has one built in, but it won&#39;t help<br>
you in the slightest if your HTML page isn&#39;t hosted on GeoServer. So<br>
either host your page on geoserver&#39;s webserver, or get a proxy into<br>
whatever webserver you do need.<br>
<br>
-- Chris</blockquote></div></div></div>
</blockquote></div><br></div></div>