[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>
    &nbsp; - 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>&lt;binding name="binding"
          package="com.abc.xyz.identity"&gt;<br>
          &nbsp;&nbsp;&nbsp; &lt;namespace uri=<a class="moz-txt-link-rfc2396E" \
href="http://com.abc.xyz/IDENTITY">"http://com.abc.xyz/IDENTITY"</a>  \
                default="elements" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &lt;mapping abstract="true" type-name="identityROOT"
          class="com.abc.xyz.bom.identity.Identity_ROOT"
          post-set="postSet" pre-set="preSet"&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;namespace uri="" \
default="elements" prefix=""  /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;collection \
field="identityTopicList"  usage="optional" create-type="java.util.ArrayList"&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;structure
          type="com.abc.xyz.bom.identity.Identity_Topic" name="IDENTITY"
          ordered="false"&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&lt;value style="element"  name="sourceProfileId" field="sourceProfileId"
          usage="optional" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&lt;value style="element" name="recordId"  field="recordId" usage="optional" \
                /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&lt;structure field="name" usage="optional"  name="Name" ordered="false"&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &lt;value style="element" name="id"  field="id" usage="optional" \
                /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &lt;structure  field="change_event_identifier_list"
          name="Change_Event_Identifier_TARGET"<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  marshaller="com.abc.xyz.bom.RulesMapper" \
usage="optional"  unmarshaller="com.abc.xyz.bom.RulesMapper" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &lt;structure  field="name_verification_date_list"
          name="Name_Verification_Date_TARGET"<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  marshaller="com.abc.xyz.bom.RulesMapper" \
usage="optional"  unmarshaller="com.abc.xyz.bom.RulesMapper" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &lt;structure  field="name_prefix_text_list" \
                name="Name_Prefix_Text_TARGET"<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  marshaller="com.abc.xyz.bom.RulesMapper" \
usage="optional"  unmarshaller="com.abc.xyz.bom.RulesMapper" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &lt;structure  \
                field="information_handling_effective_date_list"<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  \
name="Information_Handling_Effective_Date_TARGET"  \
                marshaller="com.abc.xyz.bom.RulesMapper"<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; usage="optional"  \
                unmarshaller="com.abc.xyz.bom.RulesMapper" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
                &lt;/structure&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&lt;/structure&gt;<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/collection&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>
          &lt;/binding&gt;<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