<div dir="ltr">Thanks for the info. I looked and from what I can tell, MapGuide does support this. I can return a XML output using something like this:<div><br></div><div><a href="http://localhost/mapguide/mapagent/mapagent.fcgi?request=GetFeature&service=WFS&version=1.1.0&typeName=ns34414117:Parcels&MaxFeatures=10">http://localhost/mapguide/mapagent/mapagent.fcgi?request=GetFeature&service=WFS&version=1.1.0&typeName=ns34414117:Parcels&MaxFeatures=10</a><br>
</div><div><br></div><div style>I have simplified the data being loaded to the WMS layer above and the WFS layer created from it. The error I get is:</div><div style><br></div><div style><div class="" style="clear:right;border-top-width:1px;border-top-style:solid;border-top-color:rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(0,0,0);font-family:Consolas,'Lucida Console',monospace;font-size:12px">
<ol class="" tabindex="0" style="font-size:inherit;list-style-type:none;margin:0px;outline:none;padding-left:0px;line-height:12px"><li title="" class="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word">
<span class="" style="white-space:pre-wrap;color:red!important"><span style>OPTIONS <a href="http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin" class="" title="http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin" style="color:rgb(84,84,84)">http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin</a> Origin null is not allowed by Access-Control-Allow-Origin.</span> <a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js:220" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">XMLHttpRequest.js:220</a></span></li>
<ol class="" style="margin:0px;min-width:100%;list-style-type:none;font-size:inherit;padding:0px 0px 0px 12px!important"><li title="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word"><div style><span class="" style="white-space:pre-wrap;color:red!important">fXMLHttpRequest_send</span><a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js:220" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">XMLHttpRequest.js:220</a></div>
</li><li title="" class="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word"><div style><span class="" style="white-space:pre-wrap;color:red!important">cXMLHttpRequest.send</span><a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js:262" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">XMLHttpRequest.js:262</a></div>
</li><li title="" class="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word"><div style><span class="" style="white-space:pre-wrap;color:red!important">(anonymous function)</span><a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request.js" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/lib/OpenLayers/Request.js:233" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">Request.js:233</a></div>
</li></ol></ol></div><div class="" style="clear:right;border-top-width:1px;border-top-style:solid;border-top-color:rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(0,0,0);font-family:Consolas,'Lucida Console',monospace;font-size:12px">
<span class="" style="white-space:pre-wrap;color:red!important"><span style>XMLHttpRequest cannot load <a href="http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin" class="" title="http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin" target="_blank" style="color:rgb(84,84,84);text-decoration:none">http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin</a>. Origin null is not allowed by Access-Control-Allow-Origin.</span> <a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/index.html#mappage" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/index.html#mappage" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">index.html:1</a><a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/index.html#mappage" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/index.html#mappage" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)"><br>
</a><a href="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/index.html#mappage" class="" title="file:///Z:/MapGuideProjects/MobileGIS/RBAC%20Mobile%20GIS/index.html#mappage" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)"><br>
</a></span></div></div><div><br></div><div style>This is showing up immediately after the last *.js file is loaded. I thought I had read somewhere about this but can't remember where and what it said and of course can't find it again. Any thoughts?</div>
<div style><br></div><div style>As far as the mobile.js, yes, I noticed that I had to use the "regular" Openlayers.js for that to even attempt to work. I will just try to include the individual script and see if that works rather than creating my own build (for now).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 4:35 AM, Mark Prins <span dir="ltr"><<a href="mailto:mc.prins@gmail.com" target="_blank">mc.prins@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/6/14 Rich Bauer <<a href="mailto:rdbauer@gmail.com">rdbauer@gmail.com</a>>:<br>
>.... Code below:<br>
<div class="im">><br>
> var wmsParcels = new OpenLayers.Layer.WMS("Parcels",<br>
><br>
> "<a href="http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin" target="_blank">http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin</a>",<br>

>         { layers: 'Samples/Sheboygan/Layers/Parcels', transparent: true },<br>
>         { isBaseLayer: false, transitionEffect: 'resize', format:<br>
> 'image/png' }<br>
>         //{ projection: new OpenLayers.Projection('EPSG:900913') }<br>
>     );<br>
><br>
> map.addLayer(wmsParcels);<br>
><br>
> var wfsParcels = new OpenLayers.Layer.Vector("WFS Parcels", { protocol: new<br>
> OpenLayers.Protocol.WFS.fromWMSLayer(wmsParcels) });<br>
<br>
</div>I think (but I could well be wrong...) this was developed and tested<br>
with Geoserver.  the WMS needs to support GML getfeatureinfo responses<br>
that exports the featuretype I'm not sure that mapguide does this.<br>
<div class="im"><br>
> map.addLayers([select, wfsParcels]);<br>
><br>
> With this there are no errors showing up in Chrome Developer tools.<br>
><br>
> As a related issue, when I use the above code, I get the error below if I<br>
> use the OpenLayers.movile.js script instead of the OpenLayers.js?mobile<br>
> script.<br>
><br>
> Error:<br>
><br>
> Uncaught Unsupported WFS version: 1.1.0 OpenLayers.mobile.js:515<br>
<br>
</div>this seems clear enough, there is no WFS 1.1.0 support... when you<br>
look at the build profile[1] you can see there is only<br>
OpenLayers/Protocol/WFS/v1_0_0.js<br>
You need to make your own build.<br>
<br>
[1] <a href="https://github.com/openlayers/openlayers/blob/master/build/mobile.cfg" target="_blank">https://github.com/openlayers/openlayers/blob/master/build/mobile.cfg</a><br>
<br>
<br>
<br>
<br>
--<br>
Disclaimer;<br>
This message is just a reflection of what I thought at the time of<br>
sending. The message may contain information that is not intended for<br>
you or that you don't understand.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">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>
</blockquote></div><br></div>