dongmen1860 2013-06-10 19:46
浏览 36
已采纳

PHP SOAP服务器配置/实现

I need to implement a SOAP server that will respond to a third-party application that behaves as a SOAP client.

The server should be in PHP, so I started using nusoap and http://www.wsdltophp.com/ to generate the skeleton.

Here's the wsdl file they gave me: http://pastebin.com/YXBbszqE The guy from support said I should start with the Ping request, because it's the most simple and straightforward to implement.

I'm new to this and will really appreciate some help.

Here's what I have so far for the server: http://pastebin.com/vARst5t0

and to simulate the client: http://pastebin.com/seG7EmM6

and it gives me an error: http://pastebin.com/Say6FmF6

Thanks a lot, guys.

EDIT: I found that on the server, after disabled the error_reporting, I don't receive the previous error.

I forgot to mention that I use the nusoap feature of loading the wsdl file and not defining each complexType manually, but it's still not working, now I get the following error: Operation 'Ping' is not defined in the WSDL for this service. And I'm sure it is there.

  • 写回答

2条回答 默认 最新

  • dongpian6319 2013-06-12 14:34
    关注

    Thank you guys, I ended up using the php native functions and it was much easier to configure.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥15 复杂网络,变滞后传递熵,FDA