去评论
dz插件网

php SOAP测试代码

admin
2020/07/06 08:18:28
  1. <?php/* * CopyRight  : [Discuz!] (C)2001-2099 HaoTeam Inc. * Document   : soap.inc.php * Created on : 2014-12-17,14:23:26 * Author     : 51漂泊(51piaobo) www.51piaobo.com $ * Description: This is NOT a freeware, use is subject to license terms. *              这即使是一个免费软件,使用时也请遵守许可证条款,得到当时人书面许可。 *              未经书面许可,不得翻版,翻版必究;版权归属51漂泊; */if (!defined('IN_DISCUZ')) {    exit('Aecsse Denied');}$client = new SoapClient('http://0.0.0.0/HsIO_xx_PLU/HsIO_xx_PLU.asmx?wsdl',array('trace'=>true, 'exceptions'=>true, 'style'=>SOAP_DOCUMENT, 'encoding'=>'GBK', 'soap_version'=>SOAP_1_1));$param = array('inParms'=>'{"TimeMark":0,"MaxCount":20}');$result = $client->SynPluInfo($param);print_r($client);exit;?>