簡體   English   中英

PHP的肥皂客戶端問題

[英]php soap client issue

我必須開發一個連接到Soap Web服務服務器的php客戶端。 使用SoapUI,我可以測試運行良好的Web服務。

但是從我的php客戶端,我得到以下錯誤:

<<到>>附近的語法錯誤

這是我的php客戶端代碼:

$wsdl = 'http://intrageo.cannes.fr:81/AdresseRecherche/searchByWhereClause?wsdl';

$trace = true;
$exceptions = false;

$xml_array['context'] = '?';
$xml_array['table'] = 'adr_digadr';
$xml_array['colonneARecuperer'] = 'numero';
$xml_array['clauseWere'] = 'nomvoie= \'BOULEVARD COINTET\'';
$xml_array['nbMaxLignes'] = 10;

try {
    $client = new SoapClient($wsdl, array('trace' => $trace, 'exceptions' =>  $exceptions));
    $response = $client->getDistinctValue($xml_array);
} catch (Exception $e) {
    echo "Error!";
    echo $e->getMessage();
    echo 'Last response: '. $client->__getLastResponse();
}

var_dump($response);

感謝幫助。

如果我使用$ response = $ client-> _ soapCall(“ getDistinctValue”,$ xml_array);它會起作用。 而不是$ response = $ client-> getDistinctValue($ xml_array)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM