doujiang2812 2016-04-15 06:38 采纳率: 0%
浏览 180

我可以通过curl加载wsdl文件,但不能通过SoapClient加载。 我不知道为什么?

getting the below soap error

"SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSource
Transaction_1.25.wsdl' : failed to load external entity 
"https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.25.wsdl

This is the code:

<?php

     $opts = array(
          'ssl' => array('ciphers'=>'RC4-SHA', 'verify_peer'=>false,                  'verify_peer_name'=>false)
       );
        // SOAP 1.2 client
       $params = array ('encoding' => 'UTF-8', 'verifypeer' => false, 'verifyhost' => false, 'soap_version' => SOAP_1_2, 'trace' => 1, 'exceptions' =>  1, "connection_timeout" => 180, 'stream_context' => stream_context_create($opts)       );
    $url = "https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.26.wsdl";

      try{
         $client = new SoapClient($url,$params );
         var_dump($client);
     }
     catch(SoapFault $fault) {
          echo '<br>'.$fault;
     }

?>
  • 写回答

1条回答 默认 最新

  • douliang1900 2016-04-15 06:56
    关注

    I used this code to list functions:

    $url = "https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.26.wsdl";
    $client = new SoapClient($url);
    var_dump($client->__getFunctions());
    

    and this gives one function:

    array(1) {
      [0]=>
      string(50) "ReplyMessage runTransaction(RequestMessage $input)"
    }
    
    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制