AW: [mapguide-users] Consumption of WFS feature requests

Matthias Liechti matthias.liechti at autodesk.com
Wed Mar 29 15:29:03 EST 2006


Hi Chis and Thomas
 
The problems seem definitively to be related to the "keywords" parameter field in the WFS service properties in MapGuide Studio. Once I fill in values both the GetCapabilities request and the GetFeature request work fine. It works also with the original Server/Wfs/OgcWfsServer.config.awd file therefore I've restored that version. 
 
One point that I would like to mention is that the Browser should be closed and re-opened after applying the changes in the service properties box. Otherwise the script might still throw exceptions.
 
- Matthias
 
-----Ursprüngliche Nachricht----- 
Von: Chris Claydon 
Gesendet: Mi 29.03.2006 20:22 
An: Matthias Liechti 
Cc: 
Betreff: RE: [mapguide-users] Consumption of WFS feature requests



	Hi Matthias,

	 

	Are you still having problems with WFS?

	 

	One client reported the same problem as you, and was able to work around it by setting keywords for each WFS feature source. The problem only occurred if the keyword field was left empty in Studio.

	 

	It should also be possible to edit the template to fix the problem.

	 

	Let me know if you still need help with this.

	 

	Chris Claydon.

	 

	
  _____  


	From: Matthias Liechti 
	Sent: Tuesday, March 28, 2006 11:51 PM
	To: users at mapguide.osgeo.org
	Subject: FW: [mapguide-users] Consumption of WFS feature requests

	 

	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/92bd3502/attachment.html


More information about the Mapguide-users mailing list