在我的Symfony2项目中,我试图调用Web Service,我做了一些google搜索,发现这个SOAP Bundle besimple/soap-client
。我安装了它并做了一些配置:
Config.yml :
be_simple_soap:
clients:
TestWebService:
wsdl: https://mywebservice.svc?wsdl
的services.xml :
<!-- Soap Client -->
<service id="mybundle.test.soap.wrapper"
class="MyBundle\Test\Soap\SoapClientWrapper">
<argument key="soap_options">%be_simple_soap%</argument>
</service>
然后我将这项服务送入了我的Dto / Template之一。这个wortks很好没有错误。
当我导航到我的模板,我注入了SOAP服务时,我得到了这个错误:
{
errors: {
code: 500,
message: "SOAP-ERROR: Parsing WSDL: Couldn't load from '/Users/my.name/Dev/test-api/src/MyBundle/Test/Soap\'"
}
}
任何建议我发现很难找到Google
上的任何内容。