Can ksoap2 deal with circular dependency?

Skip to first unread message

Renato Curto Rodrigues

Jan 15, 2019, 1:05:55 PM1/15/19
to ksoap2-android
I have these 2 Java classes:

public class Inspecao {
  private List<Arquivo> fotos;

public class Arquivo {
  private String nome;
  private Inspecao inspecao; /* CIRCULAR DEPENDENCY */

and the result of the serialization process should be something like this:

<inspecao Id="1">
    <fotos Id="2">
        <arquivo Id="3">
            <nome Id="4">/storage/2019.01.11-16:51:40.jpg</nome>
            <inspecao Ref="1"/>

How do I make ksoap2 create an id for "inspecao" (Id="1") and reference it inside "arquivo" (Ref="1")?

I have been trying to solve this for weeks! Is it possible?

Thanks in advance!

Renato Curto Rodrigues

Jan 15, 2019, 1:09:39 PM1/15/19
to ksoap2-android
Both classes implement KvmSerializable...

Manfred Moser

Jan 19, 2019, 11:57:30 PM1/19/19
I have not tried or looked in detail but I have a strong feeling that wont work... logically it is also redundant since the arquivo is nested inside insepcao anyway... 

On Tue, 15 Jan 2019 at 10:09, Renato Curto Rodrigues <> wrote:
Both classes implement KvmSerializable...

You received this message because you are subscribed to the Google Groups "ksoap2-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit
Reply all
Reply to author
0 new messages