|
@@ 1234-1243 (lines=10) @@
|
| 1231 |
|
} |
| 1232 |
|
|
| 1233 |
|
// Parse the XML file. |
| 1234 |
|
if (!xml_parse($this->parser,$xml,true)) { |
| 1235 |
|
// Display an error message. |
| 1236 |
|
$errstr = sprintf('XML error parsing XML schema on line %d: %s', |
| 1237 |
|
xml_get_current_line_number($this->parser), |
| 1238 |
|
xml_error_string(xml_get_error_code($this->parser)) |
| 1239 |
|
); |
| 1240 |
|
$this->debug($errstr); |
| 1241 |
|
$this->debug("XML payload:\n" . $xml); |
| 1242 |
|
$this->setError($errstr); |
| 1243 |
|
} |
| 1244 |
|
|
| 1245 |
|
xml_parser_free($this->parser); |
| 1246 |
|
} else { |
|
@@ 4916-4929 (lines=14) @@
|
| 4913 |
|
xml_set_element_handler($this->parser, 'start_element', 'end_element'); |
| 4914 |
|
xml_set_character_data_handler($this->parser, 'character_data'); |
| 4915 |
|
// Parse the XML file. |
| 4916 |
|
if (!xml_parse($this->parser, $wsdl_string, true)) { |
| 4917 |
|
// Display an error message. |
| 4918 |
|
$errstr = sprintf( |
| 4919 |
|
'XML error parsing WSDL from %s on line %d: %s', |
| 4920 |
|
$wsdl, |
| 4921 |
|
xml_get_current_line_number($this->parser), |
| 4922 |
|
xml_error_string(xml_get_error_code($this->parser)) |
| 4923 |
|
); |
| 4924 |
|
$this->debug($errstr); |
| 4925 |
|
$this->debug("XML payload:\n" . $wsdl_string); |
| 4926 |
|
$this->setError($errstr); |
| 4927 |
|
|
| 4928 |
|
return false; |
| 4929 |
|
} |
| 4930 |
|
// free the parser |
| 4931 |
|
xml_parser_free($this->parser); |
| 4932 |
|
$this->debug('Parsing WSDL done'); |