[OpenLayers-Users] Connecting to MapGuide via WFS

Rich Bauer rdbauer at gmail.com
Wed Jun 19 10:29:05 PDT 2013


No, the WMS layer shows as expected. Just the WFS created one does not. I
got the "Origin null" figured out...for now. The issue was I was trying to
run it locally and not on a web server, and that was on purpose because the
final product will be an application on Android via PhoneGap and so I
wanted to remove the web server from the equation, but I will worry about
that later and just get everything to work on localhost web server right
now.

However, I am now getting another error (below):


   1. POST
   http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin559
(MgStreamIoException)
   XMLHttpRequest.js:220<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js>
      1. fXMLHttpRequest_sendXMLHttpRequest.js:220<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js>
      2. cXMLHttpRequest.sendXMLHttpRequest.js:262<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js>
      3. (anonymous
function)Request.js:240<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request.js>


   1. XHR finished loading: "
   http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin
   ". XMLHttpRequest.js:220<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js>
      1. fXMLHttpRequest_sendXMLHttpRequest.js:220<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js>
      2. cXMLHttpRequest.sendXMLHttpRequest.js:262<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request/XMLHttpRequest.js>
      3. (anonymous
function)Request.js:240<http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request.js>

      <http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request.js>

      <http://localhost/mapguide/RBAC%20Mobile%20GIS/lib/OpenLayers/Request.js>


I looked at the MapGuide logs and didn't see anything about this. I am also
going to post this in the MapGuide list in case it is MapGuide related.

Any thoughts?

Thanks,
Rich


On Mon, Jun 17, 2013 at 11:30 AM, Mark Prins <mc.prins at gmail.com> wrote:

> 2013/6/17 Rich Bauer <rdbauer at gmail.com>:
> > 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:
> >
> >
> http://localhost/mapguide/mapagent/mapagent.fcgi?request=GetFeature&service=WFS&version=1.1.0&typeName=ns34414117:Parcels&MaxFeatures=10
> >
> > I have simplified the data being loaded to the WMS layer above and the
> WFS
> > layer created from it. The error I get is:
> >
> > OPTIONS
> >
> http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin
> > Origin null is not allowed by Access-Control-Allow-Origin.
> > XMLHttpRequest.js:220
> >
> > fXMLHttpRequest_sendXMLHttpRequest.js:220
> > cXMLHttpRequest.sendXMLHttpRequest.js:262
> > (anonymous function)Request.js:233
> >
> > XMLHttpRequest cannot load
> >
> http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin
> .
> > Origin null is not allowed by Access-Control-Allow-Origin. index.html:1
>
> this because chrome handles localhost special:
> https://code.google.com/p/chromium/issues/detail?id=67743 There are
> various ways around this CORS problem
>
> i'm guessing that you're not even seeing the WMS images in the map (or
> on the wire).
>
> Mark
>
>
> --
> Disclaimer;
> This message is just a reflection of what I thought at the time of
> sending. The message may contain information that is not intended for
> you or that you don't understand.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130619/9b8ffcc0/attachment-0001.html>


More information about the Users mailing list