[英]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.