dtch60248 2017-01-05 18:02
浏览 169

SOAP客户端PHP错误:SOAP-ENV:服务器; 过程'functionName'不存在

i'm using a PHP client for consume a testing web service, I've written my code with the native PHP Soap client and with nusoap library, but get same error.

The response of operation is:

[faultcode] => SOAP-ENV:Server

[faultstring] => Procedure 'xxx' not present

If i use the $client->__getFunctions() it shows correctly the functions, but i don't understand the fault, in many sites recommends disable WSDL caching, but still failing with this changes.

WSDL File used, PHP code for webservice and images folder: https://drive.google.com/open?id=0BxjxYDI011PdNzBBYlBza1VBY0E

List of functions response (no libraries): Image name: native.png

Nusoap response (calling function): Image name: response.png

Additionally i test that with SoapUI but get same response with this status: HTTP/1.1 500 Internal Service Error

I test that client with this webservice with no problems: http://www.xignite.com/xquotes.asmx?WSDL Then the code seems to be correct, but...

I need to know if my code has an error, the wsdl definition(i don't any access to server, only this file), or something else, I appreciate any information.

  • 写回答

1条回答 默认 最新

  • dsuxcxqep31023992 2017-01-11 23:48
    关注

    In response.png for your Request, your SOAPAction should point to 'getBankList', not 'http://...' (which points to the service). I'm not sure where you are setting this in the code, but the SOAPAction should point to the wsdl:service name="" value, not the actual running service.

    Also, looking at the xignite WSDL, it doesn't have a getBankList function, or in fact the word 'Bank' in it at all. Are you sure you're pointing to the correct WSDL?

    HTH, Jim

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序