|
I've tried your solution but i get an error: The binding file: <binding> <mapping name="SOInvoice" class="com.snapon.nemo.server.connectors.erp.tranformations.salesinvoice.SOInvoice" ordered="false"> <namespace uri="http://www.ibm.com/websphere/crossworlds/2002/BOSchema/SOInvoice" default="elements"/> <value name="advancesApplicable" field="advancesApplicable"/> .......................................................................................... <structure name="ControlArea"> <structure field="controlArea"/> </structure> <value name="ObjectEventId" field="objectEventId"/> </mapping> <mapping name="ControlArea" class="com.snapon.nemo.server.connectors.erp.tranformations.salesinvoice.ControlArea" ordered="false"> <namespace uri="http://www.ibm.com/websphere/crossworlds/2002/BOSchema/ControlArea" default="elements"/> <value name="eventEntity" field="eventEntity"/> <value name="eventAction" field="eventAction"/> <value name="eventContentType" field="eventContentType"/> <value name="eventRequestID" field="eventRequestID"/> <value name="eventTimeStamp" field="eventTimeStamp"/> <value name="eventConsumer" field="eventConsumer"/> <value name="eventSupplier" field="eventSupplier"/> <value name="destination" field="destination"/> </mapping> </binding> The XML looks like this: <Q1:SOInvoice xmlns:Q1="http://www.ibm.com/websphere/crossworlds/2002/BOSchema/SOInvoice" version="3.0.0" verb="OnEvent" locale="en_US" delta="false"> <Q1:advancesApplicable>xx</Q1:advancesApplicable> ............................................................................... <Q1:ControlArea> <Q2:ControlArea xmlns:Q2="http://www.ibm.com/websphere/crossworlds/2002/BOSchema/ControlArea" version="3.0.0" verb="" locale="en_US" delta="false"> <Q2:eventEntity>xxxxxxxx</Q2:eventEntity> <Q2:eventAction>xxxxxxx</Q2:eventAction> <Q2:eventContentType>xx</Q2:eventContentType> <Q2:eventRequestID>xxxx</Q2:eventRequestID> <Q2:eventTimeStamp>xxxxxx</Q2:eventTimeStamp> <Q2:eventConsumer>xxxxr</Q2:eventConsumer> <Q2:eventSupplier>xxxxx</Q2:eventSupplier> <Q2:destination>xxxxxx</Q2:destination> </Q2:ControlArea> </Q1:ControlArea> <Q1:ObjectEventId>xxxxxxxx</Q1:ObjectEventId> </Q1:SOInvoice> The error: org.jibx.runtime.JiBXException: Missing required element "{http://www.ibm.com/websphere/crossworlds/2002/BOSchema/ControlArea}eventEntity Thank you, Andrei Joshua Davies wrote:
|
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
