简体   繁体   English

从WSDL导入架构中的PHP Soap客户端问题:未捕获的SoapFault异常:[WSDL] SOAP错误:解析架构:无法从中导入架构

[英]PHP Soap client issue in importing schema from WSDL : Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from

I am using Soap protocol with WSDL on server side. 我在服务器端使用WSDL的Soap协议。 For some reason PHP is not able to import the schema. 由于某些原因,PHP无法导入架构。 But the schema import links are opening in browser without any problem. 但是架构导入链接可以在浏览器中正常打开。 The schema links are https links, but I have enabled openssl in PHP. 模式链接是https链接,但是我已经在PHP中启用了openssl。

PHP Code: PHP代码:

<?php

$client = new SoapClient("https://domain:460/path/RemittanceRequest1.wsdl");

Error 错误

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'https://domain:460/Service/mex2.xsd', unexpected 'targetNamespace'='http://schemas.datacontract.org/2004/07/RMTService' in E:\xampp\htdocs\wsdl\GetCurrencyCodesReq.php:3

PHP Version - 7.0.4 PHP版本 -7.0.4

Do you have an imported xsd file ? 您是否有导入的xsd文件?

It's usually related to a mismatch between the attributes: namespace from the <import> tag and the targetNamespace from the schema tag in the imported xsd file. 这通常与以下属性之间的不匹配有关:导入的xsd文件中的<import>标记的名称空间和schema标记的targetNamespace。

暂无
暂无

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

相关问题 致命错误:未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL:无法加载 - Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL - Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL 使用ZEND SOAP客户端“未捕获的SoapFault异常:[WSDL] SOAP-ERROR:WSDL解析:无法加载” - “Uncaught SoapFault exception: [WSDL] SOAP-ERROR: WSDL parsing: Could not load” using ZEND SOAP client 致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:解析 WSDL:无法从 &#39;&#39; 加载:无法加载外部实体 - Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '' : failed to load external entity Awin API 中的致命错误 - 未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:解析 WSDL:无法加载 - Fatal Error in Awin API - Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL无法从&#39;http://88.XXX.XXX.XXX:8080/加载 - Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL Couldn't load from 'http://88.XXX.XXX.XXX:8080/ 未捕获的SoapFault异常:[WSDL] SOAP错误:解析WSDL:无法从“ &lt;URL HERE&gt;”加载:无法加载外部实体 - Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '< URL HERE >' : failed to load external entity PHP SOAP-ERROR: Parsing Schema: can&#39;t import schema from xsd - PHP SOAP-ERROR: Parsing Schema: can't import schema from xsd SoapFault异常:[WSDL] SOAP错误:解析WSDL:无法从中加载 - SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 未捕获的SoapFault异常:[WSDL] SOAP错误: - Uncaught SoapFault exception: [WSDL] SOAP-ERROR:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM