php WEBservice或WCFservice请求方法
1.安装php_soap.dll扩展2.代码写法(wcfservice与webservice差不多)
$client = new SoapClient( 'http://www.explome.com/WCFService.svc?wsdl' );//'wsdl'一定要添加
$params = array( 'id'=>2,'name'=>'aaa' );
$res = $client->UserCard_SavePass($params); //wcf的方法
$result = $res->UserCard_SavePassResult; //方法名Result,$result返回过来的是对象
页:
[1]