webservice地址:http://61.186.169.203:8082/XSJPUB.asmx?WSDL
调用函数 GetHClist 参数我怎么都传不进去。<?php
require_once( './lib/nusoap.php' );
header("content-type:text/html;charset=utf-8");
$client = new nusoap_client("http://61.186.169.203:8082/XSJPUB.asmx?wsdl","wsdl");//$client = new SoapClient("http://61.186.169.203:8082/XSJPUB.asmx?wsdl");$hts = " 
    <GetHClist xmlns=\"http://tempuri.org/\">
      <hts>
        <DictionaryEntry>
<Key Key=\"SHIPNO\"/>
<Value Value=\"SZTZ\"/>
        </DictionaryEntry>
      </hts>
    </GetHClist>";$client->soap_defencoding = 'UTF-8';
$result = $client->call('GetHClist',$hts);
// Check for a fault
if ($client->fault) {
echo '<h2>Fault</h2><pre>';
print_r($result);
echo '</pre>';
} else {
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
// Display the result
echo '<h2>Result</h2><pre>';
print_r($result);
echo '</pre>';
}
}
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';//调用__soapCall
//$p = $client->__soapCall('GetHClist',array('hts'=>$param->hts));
//print_r($p->helloworldResult);  //这里先输出一下变量$p,看看是什么类型。
?>