FW: [mapguide-users] Consumption of WFS feature requests
Matthias Liechti
matthias.liechti at autodesk.com
Wed Mar 29 01:50:30 EST 2006
Hi Thomas
Adding the definitions below shows the following results:
http://127.0.0.1/mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WFS
Invalid argument(s): [1] = "const string&" The string is invalid and cannot be converted.
Invalid argument(s): [1] = "const string&" The string is invalid and cannot be converted. Exception occurred in method MgUtil.WideCharToMultiByte at line 286 in file c:\build_tux_area\mgdev\common\service\util\Util.cpp
http://127.0.0.1/mapguide/mapagent/mapagent.fcgi?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Data/zgn_f
Invalid argument(s): [1] = "const string&" The string is invalid and cannot be converted.
Invalid argument(s): [1] = "const string&" The string is invalid and cannot be converted. Exception occurred in method MgUtil.WideCharToMultiByte at line 286 in file c:\build_tux_area\mgdev\common\service\util\Util.cpp
I've installed MGOS 1.0 which was posted on our internal AE share
- Matthias
_____
From: Thomas M. Tuerke
Sent: Mittwoch, 29. März 2006 00:33
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Consumption of WFS feature requests
Hi Matthias,
The descriptions your providing look like it could be a mismatch between the OGC templates and the source code. Are you getting the source and building, or are these from the downloaded installs?
Here's a quick fix to suppress the warnings if you need to move forward, but some further investigation is in order, because this could be symptoms of something else amiss.
1. Look for the file Server/Wfs/OgcWfsServer.config.awd in your install. Use a text editor (such as notepad, or vi or the like) to edit this file. (Don't use a word processor, though!)
2. Look for the line that reads </Definitions> which is about half way down the file.
3. Add the following statements before the </Definitions> element, so that you have something that looks like this:
<Define item="Feature.Keywords"></Define>
<Define item="GetFeature.FeatureCollection"></Define>
</Definitions>
This should prevent the error messages from occurring, but like I said, we should figure out why they're happening on your system in the first place.
- Thomas
_____
From: Matthias Liechti
Sent: Tuesday, March 28, 2006 2:07 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Consumption of WFS feature requests
Hi
I've successfully exposed some WMS layers from MGOS to the public. Now I tried to publish a feature resource to the public through the WFS interface. Unfortunately both getting the capabilities and requesting a features failed. I've used the following Request parameters:
Get capabilities:
http://127.0.0.1/mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WFS
error message:
Reference to undefined entity 'Feature.Keywords'. Error processing resource 'http://127.0.0.1/mapguide/mapagent/mapagent.fc...
<Keyword>&Feature.Keywords;</Keyword>
----------------^
Get Feature:
http://127.0.0.1/mapguide/mapagent/mapagent.fcgi?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Data/zgn_f
error message:
Reference to undefined entity 'GetFeature.FeatureCollection'. Error processing resource 'http://127.0.0.1/mapguide/mapagent...
&GetFeature.FeatureCollection;
----^
Can anyone give me some hints to successfully set up WFS requests? Does the consumption of WFS feautres already work in Map2007?
Thanks
Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060329/47a02ec7/attachment.html
More information about the Mapguide-users
mailing list