Parse XML to recordList in Java

Hi,

I am trying to write a simple extension to parse XML into Outsystems structures. The problem is that when I get to lists I am getting the following error:

java.io.IOException: outsystems.nossoapconsumer.structures.STContactIdentifierIVOStructure cannot be cast to java.lang.Boolean
at outsystems.hubedition.runtimeplatform.db.OSList.readExternal(Unknown Source)
at outsystems.nossoapconsumer.recordlists.RLContactIdentifierIVORecordList.readExternal(RLIditContactIdentifierIVORecordList.java:109)



The problem is I cannot override the behavour if this method:

public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);
}

As it's the part of every (..)RecordList class. Do you have any hints how to fix this?

Solution

Hi Wojciech,


There are already some components in the Forge that do this (see for instance this one).

Have you tried to used it?


Cheers,

João Marques

Solution

Thanks, after some modifications this extension did the trick.

Hi Wojciech,


if your question is resolved it benefits the community if you could mark the answer that helped you resolve it as the solution.

As people that encounter the same problem can quickly find the solution