WMS request should work fine, however, requesting GML(xml) data through WFS request in cross domain scenario will not work, You need to use proxy or switch to GeoJSON.<div><br></div><div><br><div><a href="http://openlayers.org/dev/examples/cross-origin.html">http://openlayers.org/dev/examples/cross-origin.html</a></div>
<div><a href="http://openlayers.org/dev/examples/wfs-filter.html">http://openlayers.org/dev/examples/wfs-filter.html</a></div><div><br></div><div>regards,</div><div>Imran<br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 2:32 PM, Neelima Emmani <span dir="ltr">&lt;<a href="mailto:neelima.emmani@iictechnologies.com">neelima.emmani@iictechnologies.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi
<br>
<br>
Thank you for the response. Yes, i am trying to retrieve layers through WMS and WFS.<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">With Regards,<br>
Neelima Emmani<br>
</div>
</div>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Imran Rajjad [<a href="mailto:rajjad@gmail.com" target="_blank">rajjad@gmail.com</a>]<br>
<b>Sent:</b> Thursday, April 12, 2012 2:43 PM<br>
<b>To:</b> Neelima Emmani<br>
<b>Cc:</b> <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [OpenLayers-Users] localhost to server errors<br>
</font><br>
</div>
<div></div>
<div>Looks like a cross domain issue, are you using XML response type?
<div><br>
</div>
<div>regards,</div>
<div>Imran<br>
<br>
<div class="gmail_quote">On Thu, Apr 12, 2012 at 1:33 PM, Neelima Emmani <span dir="ltr">
&lt;<a href="mailto:neelima.emmani@iictechnologies.com" target="_blank">neelima.emmani@iictechnologies.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi All, <br>
<br>
I am working with openlayers, mapserver, postgis with Apache.<br>
In my local system all my files are working well. But the same, when i am trying to test in the server with IIS, it is giving me errors like xmlhttprequest.js -- access is denied.<br>
<br>
<div>Did anyone come across this problem. Please let me know, if i have to do any thing.
<br>
<div style="font-family:Tahoma;font-size:13px">With Regards,<br>
Neelima Emmani<br>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
I.R<br>
</font></span></div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>I.R<br>
</div></div>