Hello , i have a problem mapping Collections with JIBX. I have made the
following mappings:
<mapping name="Uusi_LELIlmoitusVastaus"
class="com.meridea.yht.ws.Lel_ilmoitus_vastaus" flexible="true"
ordered="false" extends="com.meridea.yht.ws.SoapBaseVastaus">
<namespace uri="*******secret*******" default="elements"/>
<structure field="vastausLovo"/>
</mapping>
This mapping then extends the following mapping:
<mapping name="SoapBaseVastaus" class="com.meridea.yht.ws.SoapBaseVastaus" >
<value name="palvelutunnus" style="attribute" field="palvelutunnus" />
<value name="sanomaversio" style="attribute" field="sanomaversio" />
<structure field="vakiosaVO"/>
<collection field="poikkeustiedot" name="Poikkeustiedot" >
<structure name="Poikkeus"
type="com.meridea.yht.ws.yleisettyypit.SoapPoikkeustiedot_PoikkeusVO">
<value name="Taso" type="java.lang.String" get-method="getTaso"
set-method="setTaso"/>
<value name="Koodi" type="java.lang.String" get-method="getKoodi"
set-method="setKoodi"/>
<value name="Selite" type="java.lang.String" get-method="getSelite"
set-method="setSelite"/>
<value name="Kohde"type="java.lang.String" get-method="getKohde"
set-method="setKohde"/>
</structure>
</collection>
</mapping>
When i run the JIBX compilation everything is ok, but then when I run the
Axis2 SOAP service im using this mapping for the Collection does not work at
all. Nothing is in the output XML file!
In the class all i have defined is the ArrayList im using:
private ArrayList poikkeustiedot;
and an add method:
public void addPoikkeusTieto(SoapPoikkeustiedot_PoikkeusVO poikkeus){
if(poikkeustiedot==null)poikkeustiedot= new ArrayList();
poikkeustiedot.add(poikkeus);
}
Can anyone help what is wrong?? Im using the add method to add stuff to the
collection but i get XML without anything from the collection???????
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users