Hello all.
I've upgraded from jibx 1.1 to 1.1.3 and somehow the optional structures are 
now 
not optional... I have the following mapping:


<mapping name="Header" class="pt.com.xml.SoapHeader" 
ns="http://www.w3.org/2003/05/soap-envelope"; ordered="false" flexible="false">
<value name="To" field="wsaTo" usage="optional" 
ns="http://www.w3.org/2005/08/addressing"; />
<structure name="From" map-as="EndPointReference" field="wsaFrom" 
usage="optional" ns="http://www.w3.org/2005/08/addressing"; />
<structure name="ReplyTo" map-as="EndPointReference" field="wsaReplyTo" 
usage="optional" ns="http://www.w3.org/2005/08/addressing"; />
<structure name="FaultTo" map-as="EndPointReference" field="wsaFaultTo" 
usage="optional" ns="http://www.w3.org/2005/08/addressing"; />
<value name="Action" field="wsaAction" usage="optional" 
ns="http://www.w3.org/2005/08/addressing"; />
<value name="MessageID" field="wsaMessageID" usage="optional" 
ns="http://www.w3.org/2005/08/addressing"; />
<value name="RelatesTo" field="wsaRelatesTo" usage="optional" 
ns="http://www.w3.org/2005/08/addressing"; />
</mapping>

This works with 1.1, but with 1.1.3 i get errors like:
org.jibx.runtime.JiBXException: Missing required element 
"{http://www.w3.org/2005/08/addressing}ReplyTo";(line 1, col 355)
        at 
org.jibx.runtime.impl.UnmarshallingContext.throwNameException(UnmarshallingContext.java:316)
        at 
pt.com.xml.SoapHeader.JiBX_manta_bus_binding_unmarshal_1_2(SoapHeader.java)
        at pt.com.xml.JiBX_manta_bus_bindingSoapHeader_access.unmarshal()
        at 
pt.com.xml.SoapEnvelope.JiBX_manta_bus_binding_unmarshal_1_0(SoapEnvelope.java)
        at pt.com.xml.JiBX_manta_bus_bindingSoapEnvelope_access.unmarshal()
        at 
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2538)
        at 
org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2681)
        at pt.com.xml.SoapSerializer.FromXml(SoapSerializer.java:51)
        ... 1 more

If I specify "ordered=true" the structures are optional but that is not the 
behaviour I want... any ideias?
--
Luis Neves



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to