Hello All,
I have a Forecast.java which extends ParentForecast. Can anyone please
tell me whether the jibx binding.xml that I have written for
supporting these classes is correct or is there anything wrong/issue
in it ?
--------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<binding>
<mapping name="parentForecast"
class="ws.bheam.com.schemas.wa.ab.ParentForecast" abstract="true">
<namespace uri="http://ws.bheam.com/schemas/wa/ab" default="elements"/>
<value name="parentZip" field="parentZip" usage="required"
style="element" />
</mapping>
<mapping name="forecast" class="ws.bheam.com.schemas.wa.ab.Forecast"
extends="ws.bheam.com.schemas.wa.ab.ParentForecast">
<namespace uri="http://ws.bheam.com/schemas/wa/ab" default="elements"/>
<value name="zip" field="zip" usage="optional"/>
<value name="city" field="city" usage="optional"/>
<value name="state" field="state" usage="optional"/>
<value name="date" field="date" usage="optional"/>
<value name="forecast" field="forecast" usage="optional"/>
<structure field="temp" usage="optional"
map-as="ws.bheam.com.schemas.wa.ab.ForecastTemp"></structure>
<collection field="dummyVectorList" usage="optional">
<value style="element" name="vectorElement" />
</collection>
<value name="hi" field="hi" usage="required" style="attribute"/>
<value name="low" field="low" usage="required" style="attribute"/>
<value name="precip" field="precip" usage="required" style="attribute"/>
<structure map-as="ws.bheam.com.schemas.wa.ab.ParentForecast"/>
</mapping>
<mapping name="temp" class="ws.bheam.com.schemas.wa.ab.ForecastTemp">
<namespace uri="http://ws.bheam.com/schemas/wa/ab" default="elements"/>
<value name="temp" field="temp" usage="optional"/>
</mapping>
</binding>
--------------------------------------------------------------------------------------------
Thank you for your time and kind response.
Kumar.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users