我使用ksoap2 包连接.net 服务器 取 和 交 数据,对于一般的方法访问起来都没有问题,带基本类型参数的也没有问题,可是访问带复杂参数时(提交数据到服务器的方法)遇到如下问题:
1、Log显示服务器不能识别 07-21 02:18:59.582: WARN/System.err(396): SoapFault - faultcode: 'soap:Client' faultstring: 'Server did not recognize the value of HTTP Header SOAPAction: http://namespace/methodname().' faultactor: 'null' detail: org.kxml2.kdom.Node@43f100b0
我用浏览器访问显示The test form is only available for requests from the local machine. (因为其它方法不显示此错误),所以应该不是webConfig 中加什么什么的问题。
2、因参数是相当复杂的对象类型(List<对象>中的对象还有List<对象>属性) ,查网上的说法en.addMapping(...) 之后首对象好像是可以过了,但首对象中的属性(是一个List<对象>)报不能序列化错误。
期望有经验人士的帮助,先谢谢了!
1、Log显示服务器不能识别 07-21 02:18:59.582: WARN/System.err(396): SoapFault - faultcode: 'soap:Client' faultstring: 'Server did not recognize the value of HTTP Header SOAPAction: http://namespace/methodname().' faultactor: 'null' detail: org.kxml2.kdom.Node@43f100b0
我用浏览器访问显示The test form is only available for requests from the local machine. (因为其它方法不显示此错误),所以应该不是webConfig 中加什么什么的问题。
2、因参数是相当复杂的对象类型(List<对象>中的对象还有List<对象>属性) ,查网上的说法en.addMapping(...) 之后首对象好像是可以过了,但首对象中的属性(是一个List<对象>)报不能序列化错误。
期望有经验人士的帮助,先谢谢了!
解决方案 »
- Android webView对加载网页的监听如何实现?
- monkeyrunner 相对目录问题
- 强制转换为LinearLayout引起崩溃
- 如何重写ListView onMeasure方法,使其能在ScrollView中计算出正确高度
- 如何从一个Activity中将Bitmap实例传到下一个Activity?
- Android 开发与B/S开发哪个更有前景?
- http://android.git.kernel.org/ 域名无法解析
- 小弟遇到了个问题,关于http请求,望各位帮忙
- 小白求助Android Studio无法创建AVD并提示An error occurred while creating the AVD. See idea.l
- Android 7.1 7寸屏适配问题
- 中国农历的算法怎么实现
- android 关于线程的问题,希望高手给分析一下
可能有参考价值