Changeset 21304 for branches/version-2_11-dev/data/module/SOAP/Parser.php
- Timestamp:
- 2011/10/31 13:54:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/module/SOAP/Parser.php
r21299 r21304 221 221 222 222 // Add current node's value. 223 $nqn = new QName($this->message[$pos]['name'],224 $this->message[$pos]['namespace']);225 $tqn = new QName($this->message[$pos]['type'],226 $this->message[$pos]['type_namespace']);227 223 if ($response) { 228 $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), $response, 224 $nqn = new QName($this->message[$pos]['name'], 225 $this->message[$pos]['namespace']); 226 $tqn = new QName($this->message[$pos]['type'], 227 $this->message[$pos]['type_namespace']); 228 $response = new SOAP_Value($nqn->fqn(), 229 $tqn->fqn(), 230 $response, 229 231 $attrs); 230 232 if (isset($this->message[$pos]['arrayType'])) { … … 232 234 } 233 235 } else { 236 $nqn = new QName($this->message[$pos]['name'], 237 $this->message[$pos]['namespace']); 238 $tqn = new QName($this->message[$pos]['type'], 239 $this->message[$pos]['type_namespace']); 234 240 // Check if value is an empty array 235 241 if ($tqn->name == 'Array') { 236 $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), array(), 237 $attrs); 238 //if ($pos == 4) var_dump($this->message[$pos], $response); 242 $response =& new SOAP_Value($nqn->fqn(), $tqn->fqn(), 243 array(), $attrs); 239 244 } else { 240 $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), 241 $this->message[$pos]['cdata'], 242 $attrs); 245 $response = new SOAP_Value($nqn->fqn(), 246 $tqn->fqn(), 247 $this->message[$pos]['cdata'], 248 $attrs); 243 249 } 244 250 } … … 251 257 $response->mustunderstand = $this->message[$pos]['mustUnderstand']; 252 258 } 253 254 259 return $response; 255 260 }
Note: See TracChangeset
for help on using the changeset viewer.