dtq26360 2011-10-31 22:32
浏览 54
已采纳

找不到肥皂功能

So I am trying to connect using SoapClient but am running into issues.

$this->client = new SoapClient(self::parser_url . '/SovrenConvertAndParse/ConvertAndParse.asmx?WSDL',array('soap_version' => SOAP_1_2
    ));
var_dump($this->client);
var_dump($this->client->__getFunctions());
try { var_dump($this->client->GetVersionInfo());}
catch (Exception $e){echo $e->getMessage();}

And here are the results I get:

object(SoapClient)#32 (2) {
  ["_soap_version"]=>
  int(2)
  ["sdl"]=>
  resource(42) of type (Unknown)
}

array(30) {
...
  [18]=>
  string(65) "GetVersionInfoResponse GetVersionInfo(GetVersionInfo $parameters)"
...
}

Not Found

Seems like if the function shows up in getFunctions() then I should be able to call it, and it should be findable. No? What could cause something like this?

So I also tried it without the try/catch and I get the following error:

Fatal error: Uncaught SoapFault exception: [HTTP] Not Found in /path/to/file:29

Anyone have any ideas as to what could be going on and how to fix this?

  • 写回答

2条回答 默认 最新

  • dqjl0906 2011-12-09 23:07
    关注

    I'm from Sovren and I just stumbled across this post. Since you didn't contact us for support I'll assume you've already resolved this problem. But for other readers, I've run the following file with PHP 5.2.12 and the call to GetVersionInfo responded correctly with both SOAP_1_1 and SOAP_1_2:

    <?php
    $client = new SoapClient(
        'http://localhost/SovrenConvertAndParse/ConvertAndParse.asmx?WSDL',
        array('soap_version' => SOAP_1_2));
    var_dump($client);
    var_dump($client->__getFunctions());
    try { var_dump($client->GetVersionInfo());}
    catch (Exception $e){echo $e->getMessage();}
    ?>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作