Hi All, 

I am new to JIBX, and we are doing a little POC to use this in one of
our projects. Below is the problem that I am stuck on.

I have multiples XML inputs files, each have almost the same structure
as shown below, except for the elements inside the BODY tag. So, in this
message the body has 'SearchForAccountBySetRequest' element, but it
could be something else in another XML.

<msg>
        <header>
                <MultiTask>Y</MultiTask>
                <RequestingSystem>SystemName</RequestingSystem>
                <Context>
                        <DivisionID>DIVISIONNAME</DivisionID>
                </Context>
        </header>
        <body>
                <SearchForAccountBySetRequest>
                        <MaxReturnRows>60</MaxReturnRows>
                        <SSN4></SSN4>
                        <MiddleInitial></MiddleInitial>
                        <FirstName>Joe</FirstName>
                        <LastName>Smith</LastName>
                        <Zip></Zip>
                </SearchForAccountBySetRequest>
        </body>
</msg>

The problem is all the XML's have same root element <msg>, even though
they have different information inside them. 
I tried different approaches and they work as long as I have only one
binding, but as soon as I write the binding for another XML, the
marshaller is confused as to which binding to use since they all start
with <msg>.  

I am pretty sure that I don't have a unique situation. Can somebody
please provide me with a simple example of how to deal with this
situation.

Thanks in advance
Vikram Sharma.
 

-----------------------------------------
This E-mail and any of its attachments may contain Time Warner
Cable proprietary information, which is privileged, confidential,
or subject to copyright belonging to Time Warner Cable. This E-mail
is intended solely for the use of the individual or entity to which
it is addressed. If you are not the intended recipient of this
E-mail, you are hereby notified that any dissemination,
distribution, copying, or action taken in relation to the contents
of and attachments to this E-mail is strictly prohibited and may be
unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any
copy of this E-mail and any printout.


-------------------------------------------------------------------------
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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to