include('nusoap.php');
$URL="http://xxxxxxxx"
$post ="<?xml version='1.0' encoding='UTF-8'?>";
$post .=".....";
$s = new nusoap_client($URL, 'wsdl');//建立連線
$result=$s->call('API名稱', array(array('參數' => $post))); //呼叫API和傳值
if (!$err=$s->getError()) {
echo 'Result: '.$result; //success
} else {
echo 'Error: '.$err;
}
echo $s->responseData;//回應的訊息去掉表頭
全站熱搜
留言列表