从 zend 接收此消息:“Zend_Soap_Client_Exception”带有消息“无效的 URN”
有谁知道这意味着什么 我在我的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);
仅供参考,我已经尝试过使用和不使用选项 当我设置选项时出现错误 当我不设置选项时,我会得到一个空客户端,
我想返回什么 是我在地址栏中输入 https://mywsdlserver.com/open?wsdl 时得到的 xml
感谢您的帮助
does anyone know what this means
im doing a pretty simple call here in my 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 i have tried this with and without the options
when i set the options i get the error
when i dont set the options i get an empty client
what id like to get back
is the xml i get when i just put https://mywsdlserver.com/open?wsdl in the addressbar
thanks for your help
该错误表明您在选项中传递的 URL 无效。您的示例中的那个很好,所以想必这不是您真正使用的。
但是,位置和 URI 选项不适用于 WSDL 模式,因此您最好完全忽略它们。请参阅 Zend_Soap_Client 构造函数的文档:http://framework.zend。 com/manual/en/zend.soap.client.html
The error indicates that the URL you are passing in the options is not valid. The one in your example is fine, so presumably this is not what you are really using.
However, the location and URI options don't apply in WSDL mode, so you're best off omitting them completely. See the docs for the Zend_Soap_Client constructor at: http://framework.zend.com/manual/en/zend.soap.client.html