|
@@ 573-581 (lines=9) @@
|
| 570 |
|
} |
| 571 |
|
|
| 572 |
|
// Parse the XML file. |
| 573 |
|
if(!xml_parse($this->parser,$xml,true)){ |
| 574 |
|
// Display an error message. |
| 575 |
|
$errstr = sprintf("XML error on line %d: %s", |
| 576 |
|
xml_get_current_line_number($this->parser), |
| 577 |
|
xml_error_string(xml_get_error_code($this->parser)) |
| 578 |
|
); |
| 579 |
|
$this->debug("XML parse error: $errstr"); |
| 580 |
|
$this->setError("Parser error: $errstr"); |
| 581 |
|
} |
| 582 |
|
xml_parser_free($this->parser); |
| 583 |
|
} else{ |
| 584 |
|
$this->debug("no xml passed to parseString()!!"); |
|
@@ 2120-2129 (lines=10) @@
|
| 2117 |
|
//xml_set_default_handler($this->parser, "default_handler"); |
| 2118 |
|
|
| 2119 |
|
// Parse the XML file. |
| 2120 |
|
if(!xml_parse($this->parser,$wsdl_string,true)){ |
| 2121 |
|
// Display an error message. |
| 2122 |
|
$errstr = sprintf("XML error on line %d: %s", |
| 2123 |
|
xml_get_current_line_number($this->parser), |
| 2124 |
|
xml_error_string(xml_get_error_code($this->parser)) |
| 2125 |
|
); |
| 2126 |
|
$this->debug("XML parse error: $errstr"); |
| 2127 |
|
$this->setError("Parser error: $errstr"); |
| 2128 |
|
return false; |
| 2129 |
|
} |
| 2130 |
|
xml_parser_free($this->parser); |
| 2131 |
|
} else{ |
| 2132 |
|
$this->debug("no wsdl passed to parseWSDL()!!"); |