KSOAP2 for Android gives

让人想犯罪 __ 提交于 2019-12-04 16:39:15

I've read a lot of threads about the pains and inconsistancy of using KSoap. You can use a DefaultHttpClient class to do a http post and just manually make the SOAP header and parse the response.

i think your code is ok.

Thirst have a look at your wsdl file, here you can find all the data you need, like namspace, action an so on. In alot of cases action is an emty string like "". I always choos SoapEnvelope.VER11, but normaly it doesn't matter. This code only works with primitiv datatypes and String arrays if you expect complex data you must implement the kvmSerializable interface.

Sorry for my bad english, i hope you understand what i mean. Below is a helpful link.

http://www.drdobbs.com/mobility/208800166;jsessionid=2VAK4K4QQ5H3TQE1GHPSKH4ATMY32JVN?pgno=1

UFreedom

KSoap does have a tendancy to insert its own namespaces into each tag, which can give the output you can have a try

envelope.implicitTypes = true;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!