Reputation: 11188
Currently I'm experimenting on creating a webservice which should be the point of entry for third parties to my system. After reading some info I got started on creating my testservice.
At first I started with the PEAR package but I found it to be too much of a hassle to define the service (with the __typedef
and __dispatch_map
) so I looked further. I came across my initial resource, php's native SoapServer. This looks a lot cleaner because functions area easily defined but I need to define the WSDL. This is where I get stuck. Is there a simple way to create a WSDL by telling the generator which functions/methods are available, which parameters they expect and what the returnvalue is?
Upvotes: 1
Views: 1454
Reputation: 911
The Nusoap PHP tool (actually, library), automatically generates the WSDL for you. Obviously you have to write some code that explain to Nusoap what are the types of your data. It also handle custom, complex data.
http://sourceforge.net/projects/nusoap/
It also come with plentiful of examples...
Upvotes: 0
Reputation: 169
I found Zend Autodiscovery to be very helpful when trying to avoid all the hustle that come with creating WSDL files. Zend is famously used as a framework but you can also use it as a library if you want to maintain a standalone application. Check it out at:
http://framework.zend.com/manual/en/zend.soap.autodiscovery.html
Having said that, there are many ways to implement web services so I suggest you have a look at other options before settling on SOAP. I personally feel that REST is brilliant.
Upvotes: 1
Reputation: 804
Slim framework is used to create RESTful web applications. The Slim micro framework is everything you need and nothing you don't.
This is the best one i found in the market.
Upvotes: 4