本文介绍了如何解析与KSOAP一个复杂的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用KSOAP连接到肥皂Web服务。作为回报获得Soapobject。我将如何解析这个复杂的soapobject。

I use ksoap to connect to a soap web service. And get a Soapobject in return. How would I parse this complex soapobject.

我的问题是,返回对象的getProperty,这可以是一个叶或树中的一个节点。我有一个复杂的resultobject,它由一些整数和字符串,复杂对象的列表中。我现在无论如何都必须决定是否该属性是叶或可解析为SoapObject另一项复杂的对象。

My problem is that a SoapObject returns an object for getProperty, this can be a leaf or a node in the tree. I have a complex resultobject that consists of some ints and strings and a list of complex objects. I now somehow have to decide if the property is a leaf or another complex object that can be parsed as an SoapObject.

是否有关于如何分析这样的一个例子?

Is there an example on how to parse this?

推荐答案

您可以找到本教程在处理复杂KSOAP对象与Android有用:

You could find this tutorial useful on handling complex objects in KSOAP with Android:

Complex objects tutorial with sample code

希望这有助于

这篇关于如何解析与KSOAP一个复杂的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 04:25
查看更多