首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >php soap客户端问题

php soap客户端问题
EN

Stack Overflow用户
提问于 2017-11-24 00:24:52
回答 1查看 68关注 0票数 0

我必须开发一个连接到soap webservice服务器的php客户端。使用SoapUI,我可以测试工作正常的test服务。

但是从我的php客户端,我得到了以下错误:

来自>>的<<附近的语法错误

下面是我的php客户端代码:

代码语言:javascript
复制
$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);

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-11-27 17:53:45

如果我使用$response=$client->_soapCall("getDistinctValue",$xml_array);而不是$response=$client->getDistinctValue($xml_array),它可以工作

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47459829

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档