Hello Dennis,
Thank you very much for looking into my question and your suggestion.
Unfortunately, when I take off the default="elements", I am getting an
exception org.jibx.runtime.JiBXException: No unmarshaller for element "{
http://www.fpml.org/2005/FpML-4-2}FpML" (line 1, col 295)
Here's what my modified binding looks like,
<binding>
<namespace prefix="ns" uri="http://www.fpml.org/2005/FpML-4-2" />
<namespace prefix="xsi" uri="
http://www.w3.org/2001/XMLSchema-instance"/>
<namespace prefix="ibml" uri="http://www.ibml.jpmorgan.com/2005"/>
<mapping name="FpML" class="com.organ.server.ibml.jibx.FpML">
<value style="attribute" name="version" field="version"/>
<value style="attribute" name="ibmlVersion" field="ibmlversion"/>
<value style="attribute" ns="
http://www.w3.org/2001/XMLSchema-instance" name="schemaLocation"
field="xsiSchemaLocation"/>
<value style="attribute" ns="
http://www.w3.org/2001/XMLSchema-instance" name="type" field="xsiType"/>
</mapping>
<mapping name="header" class="com.organ.server.ibml.jibx.JibxHeader" >
<structure name="messageId" field="messageId" map-as="messageId"/>
<structure name="inReplyTo" field="messageId" map-as="messageId"/>
<value name="sentBy" field="sentBy"/>
<value name="sentTo" field="sendTo"/>
<value name="creationTimestamp" field="creationTimestamp"/>
</mapping>
.....
</binding>
Here, I'm using the namespace only on schema location and xsi:type attribute
with ns="" paradigm.
I would try and look at the multiple bindings approach in the documentation.
Thanks for your attention and help.
Best Regards,
Panduga
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users