【问题标题】:SoapFault exception: [soapenv:Client] Only one operation within the same request is allowedSoapFault 异常:[soapenv:Client] 同一个请求中只允许一个操作
【发布时间】:2017-10-29 11:18:58
【问题描述】:
我们在 Wordpress 平台中公开Apex WDSL 以通过 PHP 在 Apex WSDL 中调用更新方法。 update 方法将接受潜在客户 ID 和字段数组。但是,调用引发以下错误:
SoapFault 异常:[soapenv:Client] 只有一个操作
允许相同的请求。
这是 Salesforce 中的错误还是 Wordpress/PHP 中的错误?
【问题讨论】:
标签:
php
wordpress
wsdl
salesforce
integration
【解决方案1】:
当您的 Web 服务生成 xml 文件或您遵循代码优先的方法时,
<binding name="**************" type="tns:*********">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="*******">
<soap:operation soapAction=""/>
...............
......
</ closing all the tags ...>
确保根据上述层次结构仅使用单个<soap:operation soapAction=""/>。