Ver Mensaje Individual
  #11 (permalink)  
Antiguo 17/06/2008, 07:56
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: Zend Framework consumiendo Web Service

El problema es que los namespaces en el XML son un poco problemáticos, igual puedes intentar hacerlo de la forma "antigua", es decir usando DOM XML o algún otro parser de XML.

Leyendo en php.net, encontré esta función:
Código PHP:
function xml2assoc($xml) {
    
$assoc null;
    while(
$xml->read()){
        switch (
$xml->nodeType) {
            case 
XMLReader::END_ELEMENT: return $assoc;
            case 
XMLReader::ELEMENT:
                
$name $xml->name;
                
$atr = array();
                if(
$xml->hasAttributes) while($xml->moveToNextAttribute()) $atr[$xml->name] = $xml->value;
                
$assoc[$name][] = array('name' => $name'attributes' => $atr'value' => $xml->isEmptyElement '' xml2assoc($xml));
                break;
            case 
XMLReader::TEXT:
            case 
XMLReader::CDATA$assoc .= $xml->value;
        }
    }
    return 
$assoc;

Puedes probarla igual y te sirve para parsear tu documento.

Saludos.