简体   繁体   English

如何在Heroku上将PHP与Soap Web Service一起使用

[英]How to use php with soap web service on heroku

We are using soap client library in our application to fetch Salesforce data using API in PHP. 我们正在应用程序中使用soap客户端库来通过PHP中的API来获取Salesforce数据。

When we run simple php page it runs properly but not with soap client. 当我们运行简单的php页面时,它可以正常运行,但不能与soap client一起运行。

We run this command and getting error as shown below 我们运行此命令并得到错误,如下所示

$ heroku run php www/sandbox/index-test.php
Running `php www/sandbox/index-test.php` attached to terminal... up, run.1586

PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'soapclient/enterprise.wsdl.xml' : failed to load external entity "soapclient/enterprise.wsdl.xml" in /app/www/sandbox/soapclient/SforceBaseClient.php on line 64 PHP致命错误:SOAP错误:解析WSDL:无法从'soapclient / enterprise.wsdl.xml'加载:无法在/ app / www / sandbox / soapclient /中加载外部实体“ soapclient / enterprise.wsdl.xml”第64行的SforceBaseClient.php

而不是将xml路径用作'soapclient / enterprise.wsdl.xml',这需要xml文件' http://domain.com/soapclient/enterprise.wsdl.xml ”的完整路径

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

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