Marek Strzała 11 лет назад
Родитель
Сommit
e9ed7f5c08
1 измененных файлов с 17 добавлено и 12 удалено
  1. 17 12
      SE/superedit-OPEN_LAYERS_WPS.php

+ 17 - 12
SE/superedit-OPEN_LAYERS_WPS.php

@@ -631,20 +631,25 @@ class WpsServer {
 		$entityBody = file_get_contents('php://input');
 		$table = array();
 		$content = $entityBody;
-		if ($content != FALSE) {
-			$xml = new SimpleXmlElement($content);
-			foreach($xml->children('wps', TRUE)->DataInputs->children('wps', TRUE) as $input) {
-				if(isset($input->children('wps', TRUE)->Data->ComplexData)) {
-					$table[] = $input->children('wps', TRUE)->Data->ComplexData;
-				} else if(isset($input->children('wps', TRUE)->Data->LiteralData)) {
-					$table[] = $input->children('wps', TRUE)->Data->LiteralData;
+		$identifier = new SimpleXMLElement($content);
+		if(isset($identifier->children('ows', TRUE)->Identifier)) {
+			$funcName = ($identifier->children('ows', TRUE)->Identifier);
+			print_r($funcName);
+	
+			if ($content != FALSE) {
+				$xml = new SimpleXmlElement($content);
+				foreach($xml->children('wps', TRUE)->DataInputs->children('wps', TRUE) as $input) {
+					if(isset($input->children('wps', TRUE)->Data->ComplexData)) {
+						$table[] = $input->children('wps', TRUE)->Data->ComplexData;
+					} else if(isset($input->children('wps', TRUE)->Data->LiteralData)) {
+						$table[] = $input->children('wps', TRUE)->Data->LiteralData;
+					}
+				}
+				foreach($table as $value) {
+					echo($value);
+				}
 				}
 			}
-			foreach($table as $value) {
-				echo($value);
-			}
-			
-		}
 	}
 
 	public function getCapabilitiesAction() {