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

查看:76
本文介绍了如何从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 .它将自动为Web服务中使用的所有对象和方法创建包装器类.

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天全站免登陆