[prev in list] [next in list] [prev in thread] [next in thread]
List: jibx-users
Subject: Re: [jibx-users] Structure ordering issue with custom marshaller
From: Dennis Sosnoski <dms () sosnoski ! com>
Date: 2011-11-17 10:41:39
Message-ID: 4EC4E4E3.8070903 () sosnoski ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Vikas,
Can you provide some details of how this fails? Off hand, I'd think it
should work as you'd expect.
- Dennis
Dennis M. Sosnoski
Java SOA and Web Services Consulting <http://www.sosnoski.com/consult.html>
Axis2/CXF/Metro SOA and Web Services Training
<http://www.sosnoski.com/training.html>
Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>
On 11/03/2011 09:27 PM, vikas jadhav wrote:
> Hi All,
>
> I am using the custom binding for marshalling and unmarshalling the
> input xml file. But if the elements are not in the proper order,
> binding fails even though I use the ordered="false" tag for the
> enclosing structure element.
>
> I have following binding file.
>
> <binding name="binding" package="com.abc.xyz.identity">
> <namespace uri="http://com.abc.xyz/IDENTITY" default="elements" />
> <mapping abstract="true" type-name="identityROOT"
> class="com.abc.xyz.bom.identity.Identity_ROOT" post-set="postSet"
> pre-set="preSet">
> <namespace uri="" default="elements" prefix="" />
> <collection field="identityTopicList" usage="optional"
> create-type="java.util.ArrayList">
> <structure type="com.abc.xyz.bom.identity.Identity_Topic"
> name="IDENTITY" ordered="false">
> <value style="element" name="sourceProfileId" field="sourceProfileId"
> usage="optional" />
> <value style="element" name="recordId" field="recordId"
> usage="optional" />
> <structure field="name" usage="optional" name="Name" ordered="false">
> <value style="element" name="id" field="id" usage="optional" />
> <structure field="change_event_identifier_list"
> name="Change_Event_Identifier_TARGET"
> marshaller="com.abc.xyz.bom.RulesMapper"
> usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" />
> <structure field="name_verification_date_list"
> name="Name_Verification_Date_TARGET"
> marshaller="com.abc.xyz.bom.RulesMapper"
> usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" />
> <structure field="name_prefix_text_list" name="Name_Prefix_Text_TARGET"
> marshaller="com.abc.xyz.bom.RulesMapper"
> usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" />
> <structure field="information_handling_effective_date_list"
>
> name="Information_Handling_Effective_Date_TARGET"
> marshaller="com.abc.xyz.bom.RulesMapper"
> usage="optional"
> unmarshaller="com.abc.xyz.bom.RulesMapper" />
> ...
> ...
> ...
> ...
> </structure>
> </structure>
> </collection>
> ...
> ...
> ...
> ...
> </binding>
>
>
> Thanks,
> Vikas Jadhav
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
>
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Vikas,<br>
<br>
Can you provide some details of how this fails? Off hand, I'd think
it should work as you'd expect.<br>
<br>
- Dennis<br>
<div class="moz-signature">
<p>Dennis M. Sosnoski<br>
<a href="http://www.sosnoski.com/consult.html">Java SOA and Web
Services Consulting</a><br>
<a href="http://www.sosnoski.com/training.html">Axis2/CXF/Metro
SOA and Web Services Training</a><br>
<a href="http://www.sosnoski.com/jumpstart.html">Web Services
Jump-Start</a>
</p>
</div>
<br>
On 11/03/2011 09:27 PM, vikas jadhav wrote:
<blockquote
cite="mid:1320308871.74784.YahooMailNeo@web39313.mail.mud.yahoo.com"
type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
255); font-family: times new roman,new york,times,serif;
font-size: 12pt;">
<div>Hi All,</div>
<div><br>
</div>
<div>I am using the custom binding for marshalling and
unmarshalling the input xml file. But if the elements are not
in the proper order, binding fails even though I use the
ordered="false" tag for the enclosing <span
style="font-weight: bold;">structure</span> element.<br>
</div>
<div><br>
</div>
<div>I have following binding file.</div>
<div><br>
</div>
<div><binding name="binding"
package="com.abc.xyz.identity"><br>
<namespace uri=<a class="moz-txt-link-rfc2396E" \
href="http://com.abc.xyz/IDENTITY">"http://com.abc.xyz/IDENTITY"</a> \
default="elements" /><br>
<mapping abstract="true" type-name="identityROOT"
class="com.abc.xyz.bom.identity.Identity_ROOT"
post-set="postSet" pre-set="preSet"><br>
<namespace uri="" \
default="elements" prefix="" /><br>
<collection \
field="identityTopicList" usage="optional" create-type="java.util.ArrayList"><br>
<structure
type="com.abc.xyz.bom.identity.Identity_Topic" name="IDENTITY"
ordered="false"><br>
\
<value style="element" name="sourceProfileId" field="sourceProfileId"
usage="optional" /><br>
\
<value style="element" name="recordId" field="recordId" usage="optional" \
/><br>
\
<structure field="name" usage="optional" name="Name" ordered="false"><br>
\
<value style="element" name="id" field="id" usage="optional" \
/><br>
\
<structure field="change_event_identifier_list"
name="Change_Event_Identifier_TARGET"<br>
\
marshaller="com.abc.xyz.bom.RulesMapper" \
usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" /><br>
\
<structure field="name_verification_date_list"
name="Name_Verification_Date_TARGET"<br>
\
marshaller="com.abc.xyz.bom.RulesMapper" \
usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" /><br>
\
<structure field="name_prefix_text_list" \
name="Name_Prefix_Text_TARGET"<br>
\
marshaller="com.abc.xyz.bom.RulesMapper" \
usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" /><br>
\
<structure \
field="information_handling_effective_date_list"<br>
\
\
name="Information_Handling_Effective_Date_TARGET" \
marshaller="com.abc.xyz.bom.RulesMapper"<br>
\
usage="optional" \
unmarshaller="com.abc.xyz.bom.RulesMapper" /><br>
\
...<br>
\
...<br>
\
...<br>
\
...<br>
\
</structure><br>
\
</structure><br> </collection><br>
...<br>
...<br>
...<br>
...<br>
</binding><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Vikas Jadhav<br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
<a class="moz-txt-link-freetext" \
href="http://p.sf.net/sfu/rsa-sfdev2dev1">http://p.sf.net/sfu/rsa-sfdev2dev1</a></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
jibx-users mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:jibx-users@lists.sourceforge.net">jibx-users@lists.sourceforge.net</a> \
<a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/jibx-users">https://lists.sourceforge.net/lists/listinfo/jibx-users</a>
</pre>
</blockquote>
</body>
</html>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic