摘要: 以下是wcf服务接口[OperationContract]List<UserInfo> GetInfoByParam(UserInfo userInfo);现在php中要访问些接口$soap = new SoapClient ( "http://localhost:4625/Service1.svc 阅读全文
posted @ 2012-05-14 13:41 [在河之洲] 阅读(955) 评论(0) 推荐(0)
摘要: 上回说到php与wcf成功通信了,并且得到了数据当时说的数据是基类型数据今天我要说的是返回对象数据.首先我们说返回单个对象服务端,我定了一个GetUser的接口,返回一个UserInfo对象 public class UserInfo { [DataMember] public String Nam 阅读全文
posted @ 2012-05-10 13:20 [在河之洲] 阅读(3022) 评论(1) 推荐(0)
摘要: 接触PHP第二天,要求PHP访问WCF服务 着实痛苦,无从下手啊. 在网上查了很多资料知道PHP访问WCF很方便 <?php$client = new SoapClient ( 'http://localhost:1447/Service1.svc?wsdl' );....?> 如上即可访问 但是报 阅读全文
posted @ 2012-05-07 21:41 [在河之洲] 阅读(2274) 评论(0) 推荐(0)
摘要: img src="http://image.baidu.com/i?ct=503316480&z=&tn=baiduimagedetail&word=%CD%C3%CB%B9%BB%F9&in=7629&cl=2&lm=-1&pn=17&rn=1&di=35263554615&ln=2000&fr=&fm=&fmq=1326027830332_R&ic=&s=&se=&sme=0&tab=&width=&height=&face=&is=&istype=#pn17&-1&di35263554615&objURLhttp:%2F%2Fimage.91rb.com%2F200905%2F04%2F45%2Ff35a73409f6bb79ef6017e6db4a23427.jpg&fromURLhttp:%2F%2Fm.91.com%2Fpic%2Fwallpaper.aspx 阅读全文
posted @ 2012-01-08 21:02 [在河之洲] 阅读(531) 评论(0) 推荐(0)