【问题标题】:receiving this msg from zend: 'Zend_Soap_Client_Exception' with message 'Invalid URN'从 zend 接收此消息:'Zend_Http_Client Exception' 带有消息'Invalid URN'
【发布时间】:2011-02-12 00:21:08
【问题描述】:

有谁知道这是什么意思 我在 indexAction 中做了一个非常简单的调用 -

    private $wsdl = "https://mywsdlserver.com/open?wsdl";
    $options = array(
                "location"=>$this->wsdl,
                "uri"=>$this->wsdl
            );

    $client = new Zend_Soap_Client($this->wsdl, $options);
    print_r($client);

fyi 我试过这个有和没有选项 当我设置选项时,我得到了错误 当我不设置选项时,我得到一个空客户端

id 想要什么回来 是我在地址栏中输入https://mywsdlserver.com/open?wsdl 时得到的xml

感谢您的帮助

【问题讨论】:

    标签: zend-framework wsdl soap-client zend-soap


    【解决方案1】:

    该错误表明您在选项中传递的 URL 无效。你的例子中的那个很好,所以大概这不是你真正使用的。

    但是,位置和 URI 选项不适用于 WSDL 模式,因此您最好完全忽略它们。请参阅 Zend_Soap_Client 构造函数的文档:http://framework.zend.com/manual/en/zend.soap.client.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-10
      • 2018-04-08
      • 2013-10-15
      • 1970-01-01
      • 1970-01-01
      • 2013-08-25
      相关资源
      最近更新 更多