[Mapbender-commits] r8725 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 11 00:00:24 PDT 2013


Author: armin11
Date: 2013-10-11 00:00:23 -0700 (Fri, 11 Oct 2013)
New Revision: 8725

Modified:
   trunk/mapbender/http/classes/class_wfs.php
Log:
Bugfix in schemaLocation string for wfs transaction

Modified: trunk/mapbender/http/classes/class_wfs.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs.php	2013-10-10 14:12:05 UTC (rev 8724)
+++ trunk/mapbender/http/classes/class_wfs.php	2013-10-11 07:00:23 UTC (rev 8725)
@@ -239,6 +239,7 @@
 			return null;
 		}
 		$gml = $gmlObj->toGml();
+		//$e = new mb_exception("GML sended: ".$gml);
 		if (is_null($gml)) {
 			$e = new mb_exception("GML is not set.");
 			return null;
@@ -264,6 +265,7 @@
 		}		
 
 		$postData = $this->wrapTransaction($featureType, $requestData);
+		$e = new mb_exception("POST Data sended: ".$postData);
 		return $this->post($this->transaction, $postData);
 	}
 	
@@ -420,13 +422,13 @@
 				$strForSchemaLocation = $v;
 			}
 		}
-
+		//TODO: There will be a problem with xsi:schemaLocation and geoserver 2.1? See class_wfs.php from branch 2.7! The part may be commented out 
 		return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" . 
 			"<wfs:Transaction version=\"" . $this->getVersion() . 
 			"\" service=\"WFS\" " . $ns_gml . $ns_ogc . $ns_xsi . 
 			$ns_featureNS . $ns_wfs . 
 			"xsi:schemaLocation=\"http://www.opengis.net/wfs" . 
-			" http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" . 
+			" http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd " . 
 			$strForSchemaLocation . " " . $this->describeFeatureType . 
 			$this->getConjunctionCharacter($this->describeFeatureType) . 
 			"typename=" . $featureType->name . "&REQUEST=DescribeFeatureType" .



More information about the Mapbender_commits mailing list