fbpx

leer webservice .net desde CAKE

App::import('Core', 'HttpSocket');
App::import('Core', 'Xml');
$HttpSocket = new HttpSocket();
$results = $HttpSocket->post('https://secure.xxx.xxx/ws/xxxx.asmx/xxxx', array('var1' => 'valor1', 'var2' => 'valor2'));
$xml = new Xml($results);
$data = Set::reverse($xml);
debug $data;

Don’t Stop Here

More To Explore