致命错误:未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL:无法从'partner.wsdl.xml'加载:无法加载外部实体

时间:2016-09-08 18:13:03

标签: php bash soap wsdl salesforce

感谢您抽出宝贵时间尝试帮助我解决这个问题。

要点:

开发使用Salesforce SOAP API的应用程序,但由于它抛出的以下错误而无法继续。我已经实现了我在Stackoverflow上找到的与此问题相关的其他解决方案,但没有运气。 phpinfo()表示我已启用OpenSSL。我不知道为什么我得到这些错误,但我猜它是因为我需要找到我的OpenSSL扩展文件并将其移动到我的扩展目录(/ usr / lib / php / extensions /),因为我唯一看到的东西此目录中的内容为oauth.so。请帮忙!谢谢!

  • Apache / 2.4.18(Unix)
  • PHP 7.0.10

错误(S):

  • 网页引发此错误:

    ( ! ) Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'partner.wsdl.xml' : failed to load external entity "partner.wsdl.xml" in /Users/thomaspascalallen/Sites/salesforce-api.dev/soapclient/SforcePartnerClient.php on line 83
    
    
    ( ! ) SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from 'partner.wsdl.xml' : failed to load external entity "partner.wsdl.xml" in /Users/thomaspascalallen/Sites/salesforce-api.dev/soapclient/SforcePartnerClient.php on line 83
    
  • php -v会抛出此错误:

    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20151012/php_openssl.dll' - dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20151012/php_openssl.dll, 9): image not found in Unknown on line 0
    
    
    Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20151012/php_openssl.dll' - dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20151012/php_openssl.dll, 9): image not found in Unknown on line 0
    

的php.ini:

extension_dir = "/usr/lib/php/extensions/"
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
;extension=php_ftp.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=php_snmp.dll

;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite3.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
extension=oauth.so

0 个答案:

没有答案