PHP5 和 SOAP/WSDL?
我现在有一个大问题,我需要创建自己的网络服务,但我真的不知道如何做,有人可以帮助我吗?
也许链接到制作 WSDL/SOAP 代码的简单方法?我已经尝试过 NuSoap,但我无法获得此代码的最终结果,请帮助我。 :)
I have a big problem right now, i need to create my own webservices but i really don't know how, can sombody help me?
maybe link to easy way to make WSDL/SOAP code? i have try NuSoap but i can't get final whit this code, please help me. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SOAP Web 服务的一个非常基本的示例:
服务器部分 (server.php):
客户端部分 (client.php):
最后是 WSDL 文件 ( scramble.wsdl):
此示例假设您将这三个文件放在可从 http://localhost/test 访问的目录中 如果您使用其他位置,请查找并替换为正确的 URL。
它还需要安装 SOAP PHP 扩展。祝你好运!
A very basic example of a SOAP webservice:
The server part (server.php):
The client part (client.php):
And finally the WSDL file (scramble.wsdl):
This example assumes you put these three files in a directory that is accessible from http://localhost/test and if you use another location, find and replace with the correct URL.
Also it requires the SOAP PHP extension to be installed. Good luck!