简体   繁体   English

与Silex的肥皂连接

[英]Soap connection with Silex

I've tried to connect with API from here: http://www.hrd.pl/wsparcie/api/nawiazanie-polaczenia/ with micro-framework Silex. 我尝试从此处与API连接: http : //www.hrd.pl/wsparcie/api/nawiazanie-polaczenia/具有微框架Silex。

I've found on github that solution: https://github.com/Ibsciss/zend-soap-service-provider I've made everything what is on Readme. 我在github上找到了该解决方案: https : //github.com/Ibsciss/zend-soap-service-provider我已经完成了自述文件中的所有内容。 I registered service like that: 我注册了这样的服务:

$app->register(new ZendSoapServiceProvider());

And after that I've got blank page and my error.log says: 之后,我得到了空白页,并且我的error.log说:

PHP Fatal error: Class 'ZendSoapServiceProvider' not found in /home/stolarz/public_html/hosting-site/web/index.php on line 30 PHP致命错误:在第30行的/home/stolarz/public_html/hosting-site/web/index.php中找不到类'ZendSoapServiceProvider'

Can you give me some hint, I've really stucked. 您能给我一些提示吗,我真的很坚持。 Is there another way to connect by SOAP with Silex? 还有另一种通过SOAP与Silex连接的方法吗?

您需要指定要实例化的类的名称空间。

use Ibsciss\Silex\Provider\ZendSoapServiceProvider;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM