SOAP 错误:在 PHP 5.2.17 中解析 WSDL
我正在尝试编写一个支付网关。
我收到此错误:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://pgwstest.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl' : Start tag expected, '<' not found
生成此错误的代码是:
$mclient = new SoapClient('https://pgws.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl',array('soap_version'=>SOAP_1_2,'trace'=>1));
我的 PHP 版本是 5.2.17
有什么问题吗?
谢谢
I'm trying to write a payment gateway.
I'm getting this error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://pgwstest.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl' : Start tag expected, '<' not found
the code that is generating this is:
$mclient = new SoapClient('https://pgws.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl',array('soap_version'=>SOAP_1_2,'trace'=>1));
My PHP version is 5.2.17
What is the problem?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须在 SoapClient 对象中为 Mellat Bank 创建 stream_context 并将其作为对象的第二个参数传递我希望它能正常工作
You've to create stream_context for Mellat Bank in SoapClient object and pass it as 2nd parameter of object I hope it will work fine