Tengo el XML en respuesta de un WS
Código XML:
Ver original
<?xml version="1.0" encoding="utf-8" ?> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <soap:Body> - <ObtenerPDFResponse xmlns="http://www.theenginesoftware.com/"> - <ObtenerPDFResult> <OperacionExitosa>true</OperacionExitosa> <ErrorDetallado /> <PDF>JVBERi0xLjQKJeLjz9MKNCAwIG9iaiA8PC9GaWx0ZXI</PDF> </ObtenerPDFResult> </ObtenerPDFResponse> </soap:Body> </soap:Envelope>
Mi problema es que no puedo obtener el valor del nodo <PDF>..</PDF>
He intentado varias cosas y no logro obtener ese valor
Código PHP:
Ver original
echo $result->ObtenerPDFResponse->ObtenerPDFResult->PDF;
Código PHP:
Ver original
$result = new SimpleXMLElement($respuestaxml); echo $result->ObtenerPDFResponse->ObtenerPDFResult->PDF;
Ya de desesperación, creo que me estoy desviando
Código PHP:
Ver original
$respuesta = new DOMDocument; $respuesta->loadXML($respuestaxml); $xml = $respuesta->getElementsByTagName( "PDF" ); echo $result->getElementsByTagName("PDF")->nodeValue;
Alguien que me pueda ayudar?, desde ya gracias por su atención.