+ -
当前位置:首页 → 问答吧 → PHP获取.NET发出的WebService数据

PHP获取.NET发出的WebService数据

时间:2009-11-29

来源:互联网

<?php
header('Content-type: text/html;charset=utf-8');
// Pull in the NuSOAP code
require_once('include/lib/nusoap.php');
// Create the client instance
$client = new soapclient('http://icall.knowla.cn/ATypeCall.asmx?wsdl','wsdl');
// Call the SOAP method

$data = array(
'user'=>'user',
'pass'=>'pass'
);

$client->decode_utf8 = false;
$result = $client->call('CallA', $data,'http://tempuri.org','http://tempuri.org/CallA');

print_r($result);
?>

作者: darkst   发布时间: 2009-11-29

'include/lib/nusoap.php'  从那里获得这个文件呢?

作者: whl1295a   发布时间: 2009-11-30