如何从 PHP 轻松使用 Web 服务 [英] How to easily consume a web service from PHP

查看:24
本文介绍了如何从 PHP 轻松使用 Web 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何适用于 PHP 的工具可用于生成用于使用 网络服务的代码 基于其 WSDL?类似于在 Visual Studio 或 Eclipse 插件中单击添加 Web 引用",后者对 Java 执行相同的操作.

Is there available any tool for PHP which can be used to generate code for consuming a web service based on its WSDL? Something comparable to clicking "Add Web Reference" in Visual Studio or the Eclipse plugin which does the same thing for Java.

推荐答案

我在 wsdl2php 上取得了巨大的成功一>.它将自动为您的网络服务中使用的所有对象和方法创建包装类.

I've had great success with wsdl2php. It will automatically create wrapper classes for all objects and methods used in your web service.

这篇关于如何从 PHP 轻松使用 Web 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆