Hi,<div><br></div><div>I have a web app served by IIS that calls WFS in geoserver. I've read that a proxy is needed to do this, but everything that I'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("url")</div><div> wsResponse.Load(url)</div></div><div>
<div> Dim XMLDocument As String = wsResponse.InnerXml</div><div> Response.Clear()</div><div> Response.ContentType = "text/xml"</div><div> Response.Write(XMLDocument)</div>
</div><div><br></div><div>And the result in client side is:</div><div><br></div><div><div><?xml version="1.0" encoding="UTF-8"?><wfs:FeatureCollection> [...] </wfs:FeatureCollection></div>
<div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"></div>
<div><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" ></div><div><head><title></div><div></title></head></div><div><body></div><div> <form name="form1" method="post" action="test.aspx?url=http%3a%2f%2flocalhost%3a8080%2fgeoserver%2fwfs" id="form1"></div>
<div><div></div><div><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwCHFbQDoeTY2CHFbQDoCHFbQDoedgOjCHFbQDoeOGKuXA9" /></div><div></div></div>
<div> <div></div><div> </div><div> </div></div><div> </form></div><div></body></div><div></html></div><div><br></div><div>Is there any way to avoid the adding of html tags and return only the XML? Thanks!</div>
</div>