Home » Questions » Computers [ Ask a new question ]

How to easily consume a web service from PHP

How to easily consume a web service from PHP

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.

Asked by: Guest | Views: 129
Total answers/comments: 4
Guest [Entry]

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

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

I have used NuSOAP in the past. I liked it because it is just a set of PHP files that you can include. There is nothing to install on the web server and no config options to change. It has WSDL support as well which is a bonus.
Guest [Entry]

This article explains how you can use PHP SoapClient to call a api web service.