摘要: WCF服务默认处理的最大消息大小:65536字节,http://msdn.microsoft.com/zh-cn/library/system.servicemodel.webhttpbinding.maxreceivedmessagesize.aspx如果需要服务可以接受更大的数据消息,可以通过web.config修改配置信息: 然后在endpoint上指定bindingConfiguration: ... 阅读全文
posted @ 2013-12-16 14:34 observer & executive 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-29 23:25 observer & executive 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: eclipse和模拟器间的连接断开后,可以用如下命令,重新建立连接:在命令行中执行:adb kill-serveradb start-server提示:最好将adb.exe所在的文件配置到环境变量中。 阅读全文
posted @ 2013-11-29 23:21 observer & executive 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 运行android程序时,报错:[2013-11-26 14:21:36 - adb] ADB server didn't ACK[2013-11-26 14:21:36 - adb] * failed to start daemon *原因:任务管理器里有个 tadb.exe进程,百度了下,发现是腾讯的连接手机的软件...流氓,我都没装或者装了后又卸掉了,在任务管理器里将其 kill 掉就可以了。========================================================================另外,诸如豌豆荚,手机助手等,也都有使用adb 阅读全文
posted @ 2013-11-26 14:29 observer & executive 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 使用getSystemService()获取系统服务,需要注意的是,总是使用上下文context.getSystemService来调用该方法,如获取网络状态的服务ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);State mobile = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState();State wifi = manager.getNetwo 阅读全文
posted @ 2013-11-22 18:33 observer & executive 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 在元素上设置属性:android:theme为,@android:style/Theme.NoTitleBar.Fullscreen,代码如下: 阅读全文
posted @ 2013-11-21 18:27 observer & executive 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 开发Android程序,调用WEB服务的时候,(前提是自己写的服务),调试的话需要将http://127.0.0.1/orhttp://localhost/ 替换为http://10.0.2.2/当调试通过后,再将地址改为Web服务发布后的地址即可。 阅读全文
posted @ 2013-11-21 14:41 observer & executive 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Eclipase 无法启动,启动界面显示完版本号之后无响应解决方法:首先、Open yourworkspace\.metadata\.logfile. That will tell you usually what is going wrong.而我的错误是:!ENTRY org.eclipse.core.resources 2 10035 2013-11-21 12:19:34.443!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recov 阅读全文
posted @ 2013-11-21 14:28 observer & executive 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 四、JSON+ Wrapped我们最后来演示Json消息格式在Wrapped风格下具有怎样的结构,为此我们只需要将应用在Create操作方法上的WebInvokeAttribute特性的BodyStyle属性设置为Wrapped。 [ServiceContract] public interface IEmployees { //其他成员 [WebInvoke(UriTemplate = "/", Method = "POST", RequestFormat = WebMessageFormat.Json, Respon... 阅读全文
posted @ 2013-11-20 15:00 observer & executive 阅读(664) 评论(0) 推荐(0) 编辑
摘要: Android 访问网络服务时报异常:org.apache.http.conn.HttpHostConnectException: Connection to refused我自己遇到的情景式,在真机上测试,真机未开启网络所致。另外还有可能出现该异常的情况,一是:未加访问网络的权限,android.permission.INTERNET二是:机器防火墙没关. 阅读全文
posted @ 2013-11-19 17:47 observer & executive 阅读(2988) 评论(0) 推荐(0) 编辑