我需要這個Web服務的幫助,它返回這個stdClass Object ([GETOfertasAereasResult] =>)
web服務不返回數組
我需要所有的值返回數組。
<?php
try {
$wsdl_url = 'http://portaldoagente.com.br/wsonlinetravel/funcoes.asmx?WSDL';
$client = new SOAPClient($wsdl_url);
$params = array(
'sLojaChave' => "Y2Y4ZGRkOWU=",
);
$return = $client->GETOfertasAereas($params);
print_r($return);
} catch (Exception $e) {
echo "Exception occured: " . $e;
}
?>
哪來的web服務的文檔? – alfasin
http://portaldoagente.com.br/wsonlinetravel/funcoes.asmx – user2295500
您不會在您的請求中發佈XML:http://portaldoagente.com.br/wsonlinetravel/funcoes.asmx?op=GETOfertasAereas – alfasin