-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOS ! String could not be parsed as XML #31
Comments
Could you echo out |
Hi, thanks, I use symonfy , and in my controller,
and the result: ReportingController.php on line 30: I don't understant why _soapService is null. And i can't call the function << $ssrs->listChildren('/Report Folder');>> , it will give me error " String could not be parsed as XML" THANKS !!!! |
It is the So from your first code sample, we'd want to change it to the following temporarily just to see what your response is. public $faultcode;
public $faultstring;
public $faultactor;
static function fromResponse($string) {
var_dump($string);
exit;
$xml = new \SimpleXMLElement($string);
$ns = $xml->getNamespaces(true);
$soap = $xml->children($ns['soap']);
$body = $soap->Body->children($ns['soap']);
if (isset($body->Fault)) { We may need to make some changes to the library to handle non-XML response a little better but it would help to see what sort of response you're getting. |
ok thanks a lot. I tried to dump it. This is the result: string(0) "" |
@RocheR2D2 does my fix on #33 resolve your issue? |
in vendor\chartblocks\php-ssrs\library\SSRS\Soap\ServerException.php (line 12)
Please help Thanks !!!
The text was updated successfully, but these errors were encountered: