Hi Luis, Can you add a Jira for this with your code attached (preferably with an Ant build to demonstrate the problem)? I didn't knowingly change anything that would cause this, but there have been a lot of code changes since 1.1.
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Luis Neves wrote: > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
