Home >Backend Development >PHP Tutorial >怎么cakephp实现web service

怎么cakephp实现web service

WBOY
WBOYOriginal
2016-06-13 10:00:211249browse

如何cakephp实现web service
php可以用soap去实现 web service!
在使用cake的时候,我们如何实现web service呢?各位cakephp老鸟们 ,指点下小弟。。

------解决方案--------------------
xmlrpc google搜
------解决方案--------------------
http://bakery.cakephp.org/articles/sdevore_myopenid_com/2007/01/22/restful-web-services-with-cakephp
------解决方案--------------------

探讨
php可以用soap去实现 web service!
在使用cake的时候,我们如何实现web service呢?各位cakephp老鸟们 ,指点下小弟。。

------解决方案--------------------
$client = new SoapClient("http://aaaa",array('encoding'=>'UTF-8'));
$result = $client->__call("jx",array());
$rs = $result->Result->any;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn