随笔分类 -  SOA

一个非常简单的RPC服务
摘要:1.servicefunctions.phpView Code2.index.phpView Code 阅读全文

posted @ 2014-04-18 03:46 左小兵 阅读(156) 评论(0) 推荐(0)

soap的简单实现(PHP)
摘要:1.非wsdl模式(1)函数文件testphp/ServiceFunctions.class.phpView Code(2)服务端文件testphp/soapserver.php'http://localhost');$server=new SoapServer(null,$options);$se... 阅读全文

posted @ 2014-04-15 23:36 左小兵 阅读(395) 评论(0) 推荐(0)

使用PHP的curl扩展实现跨域post请求,以及file_get_contents()百度短网址例子
摘要:'http://www.cnblogs.com/zuoxiaobing/');curl_setopt($ch,CURLOPT_POSTFIELDS,$data);$strRes=curl_exec($ch);curl_close($ch);$arrResponse=json_decode($strR... 阅读全文

posted @ 2014-04-15 16:58 左小兵 阅读(1814) 评论(0) 推荐(0)

导航