KimhillZhang  

2013年5月7日

摘要: 使用.net创建一个ashx文件,并response.write json格式public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; StringBuilder jsonBuilder = new StringBuilder(); jsonBuilder.Append("{\"parent\":"); jsonBuilder.Append("{\"children\":&q 阅读全文
posted @ 2013-05-07 17:38 KimhillZhang 阅读(3844) 评论(2) 推荐(1) 编辑
 
摘要: 调用webservice总结: 1.加入第三方的jar包 Ksoap2-android-XXX 2.访问响应的webservice的网站,查看响应的信息,得到nameSpace,methodName,url,soapAction 3.如果request信息还有带有SoapHander的。那么就要封装:依据参数封装 Element[] header = new Element[1]; header[0] = new Element().createElement(nameSpace, "SoapHeader"); Element userName = new Element( 阅读全文
posted @ 2013-05-07 09:38 KimhillZhang 阅读(1152) 评论(0) 推荐(0) 编辑