Permalink
Browse files

Tweaks

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP/trunk@264168 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 5646b3d commit c0cf29b62b5584eb9912953c91e423b45477fa08 Jan Schneider committed Aug 4, 2008
Showing with 12 additions and 17 deletions.
  1. +12 −17 Parser.php
View
@@ -220,32 +220,26 @@ function _buildResponse($pos)
}
// Add current node's value.
+ $nqn = new QName($this->message[$pos]['name'],
+ $this->message[$pos]['namespace']);
+ $tqn = new QName($this->message[$pos]['type'],
+ $this->message[$pos]['type_namespace']);
if ($response) {
- $nqn = new QName($this->message[$pos]['name'],
- $this->message[$pos]['namespace']);
- $tqn = new QName($this->message[$pos]['type'],
- $this->message[$pos]['type_namespace']);
- $response = new SOAP_Value($nqn->fqn(),
- $tqn->fqn(),
- $response,
+ $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), $response,
$attrs);
if (isset($this->message[$pos]['arrayType'])) {
$response->arrayType = $this->message[$pos]['arrayType'];
}
} else {
- $nqn = new QName($this->message[$pos]['name'],
- $this->message[$pos]['namespace']);
- $tqn = new QName($this->message[$pos]['type'],
- $this->message[$pos]['type_namespace']);
// Check if value is an empty array
if ($tqn->name == 'Array') {
- $response =& new SOAP_Value($nqn->fqn(), $tqn->fqn(),
- array(), $attrs);
+ $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), array(),
+ $attrs);
+ //if ($pos == 4) var_dump($this->message[$pos], $response);
} else {
- $response = new SOAP_Value($nqn->fqn(),
- $tqn->fqn(),
- $this->message[$pos]['cdata'],
- $attrs);
+ $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(),
+ $this->message[$pos]['cdata'],
+ $attrs);
}
}
@@ -256,6 +250,7 @@ function _buildResponse($pos)
if (array_key_exists('mustUnderstand', $this->message[$pos])) {
$response->mustunderstand = $this->message[$pos]['mustUnderstand'];
}
+
return $response;
}

0 comments on commit c0cf29b

Please sign in to comment.