文章浏览 复制本页面地址

PHP webService技术实现

今天给海尔做项目,他们给了个接口,

 PHP webService技术实现

 

非常不错. 这个文档写的.

 nusoap.php 下载

[code]

header("Content-Type: text/html;charset=utf-8");
include_once(LIB_PATH.'/Common/nusoap.php');

$client = new soapclient('http://****.com/OIDProductInfo.asmx?WSDL', true);

$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;

$param = array(
'userName'  =>  '****',
'pwd'        =>    '*****',
'oidContent'=>    'http://****.com/oid?ewm=D006iM$MFTKA$AM$M$cM$KM$KKM$=$AM$Kv=Y$AM$$K$KA$KKM$FATMAK$FK=$KMKKYKKL4',
);
$result = $client->call('GetProductInfo',$param);
print_r($result);

[/code]

 

 

标签:
上一篇:
下一篇: