Hi,<div><br></div><div>I have a web app served by IIS that calls WFS in geoserver. I&#39;ve read that a proxy is needed to do this, but everything that I&#39;m finding is for Apache.. </div><div>To resolve this, I create a page called test.aspx that acts as a ProxyHost (test.aspx?url=) which is called and loads the URL passed as querystring.</div>
<div>This works with GET and POST, but my problem is that when the result is returned to the client, after the XML there are the html tags appended.</div><div>To call the GeoServer WFS I do the next code in test.aspx.vb:</div>
<div><br></div><div><div>            Dim wsResponse As XmlDocument = New XmlDocument()</div><div>            Dim url As String = Request.QueryString(&quot;url&quot;)</div><div>            wsResponse.Load(url)</div></div><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)</div>
</div><div><br></div><div>And the result in client side is:</div><div><br></div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;wfs:FeatureCollection&gt; [...] &lt;/wfs:FeatureCollection&gt;</div>
<div>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;</div>
<div>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot; &gt;</div><div>&lt;head&gt;&lt;title&gt;</div><div>&lt;/title&gt;&lt;/head&gt;</div><div>&lt;body&gt;</div><div>    &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;test.aspx?url=http%3a%2f%2flocalhost%3a8080%2fgeoserver%2fwfs&quot; id=&quot;form1&quot;&gt;</div>
<div>&lt;div&gt;</div><div>&lt;input type=&quot;hidden&quot; name=&quot;__VIEWSTATE&quot; id=&quot;__VIEWSTATE&quot; value=&quot;/wEPDwCHFbQDoeTY2CHFbQDoCHFbQDoedgOjCHFbQDoeOGKuXA9&quot; /&gt;</div><div>&lt;/div&gt;</div>
<div>    &lt;div&gt;</div><div>   </div><div>    &lt;/div&gt;</div><div>    &lt;/form&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div><div><br></div><div>Is there any way to avoid the adding of html tags and return only the XML? Thanks!</div>
</div>