Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2014, 09:42
Avatar de wunderwaffen077
wunderwaffen077
 
Fecha de Ingreso: marzo-2014
Mensajes: 45
Antigüedad: 10 años, 1 mes
Puntos: 3
Consumir XML tipo WML

Hola a todos.

Tengo un problema al consumir un Servicio Web.. de tipo WML.

Nose por que me retorna "FALSE".

Pero recuerdo que si funcionaba anteriormente.
No se si se tiene que configurar alguna variable en php.ini.

Código PHP:
<?php
    $ruc
='10011173140';    
    
$sunat file_get_contents('http://www.sunat.gob.pe/w/wapS01Alias?ruc='.$ruc);
    
$busqueda '<card title="Resultado" id="frstcard">';
    
$existe strpos($sunat$busqueda);
    
var_dump($existe);
?>
Este es el link del ejemplo..
http://pastebin.com/gHTz7NYL


Espero alguna sugerencia..
Gracias.