Changeset 21299 for branches/version-2_11-dev/data/module/SOAP/Parser.php
- Timestamp:
- 2011/10/25 00:02:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/module/SOAP/Parser.php
r20119 r21299 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']); 223 227 if ($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, 228 $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), $response, 231 229 $attrs); 232 230 if (isset($this->message[$pos]['arrayType'])) { … … 234 232 } 235 233 } 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']);240 234 // Check if value is an empty array 241 235 if ($tqn->name == 'Array') { 242 $response =& new SOAP_Value($nqn->fqn(), $tqn->fqn(), 243 array(), $attrs); 236 $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), array(), 237 $attrs); 238 //if ($pos == 4) var_dump($this->message[$pos], $response); 244 239 } else { 245 $response = new SOAP_Value($nqn->fqn(), 246 $tqn->fqn(), 247 $this->message[$pos]['cdata'], 248 $attrs); 240 $response = new SOAP_Value($nqn->fqn(), $tqn->fqn(), 241 $this->message[$pos]['cdata'], 242 $attrs); 249 243 } 250 244 } … … 257 251 $response->mustunderstand = $this->message[$pos]['mustUnderstand']; 258 252 } 253 259 254 return $response; 260 255 }
Note: See TracChangeset
for help on using the changeset viewer.