Hi Dennis,
Thanks for your help,
But my problem is that i have a case similar to this post
http://www.mail-archive.com/[email protected]/msg02479.html
The issue is that all my message is started with the same root element for
example
<service>
.
</service>
And when I try to bind them I got exception
Duplicate mapping name not allowed for unmarshalling
I wonder if there any way to solve this issue,
I understand that for unmarshalling you need the name to be
unique so that you can identify which class will be used for
binding.
Dennis Sosnoski <[EMAIL PROTECTED]> wrote: Hi Usama,
You can use two separate binding definitions for this purpose. All the
common stuff can go in one binding, which the other bindings then include:
common-binding.xml:
message1-binding.xml:
etc.
- Dennis
Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
Usama Rashwan wrote:
> if i have two XML files with the same root tag how can i bind them
> using JIBX
> because mapping element in JIBX doesn't allow to have the same name
> twice in binding files and will throw exception if i put the name
> message for two binding classes
>
>
> for example
> XML format 1
>
>
> .................
>
>
>
>
>
>
>
> .................
>
>
>
>
>
> ------------------------------------------------------------------------
> Don't get soaked. Take a quick peek at the forecast
>
> with theYahoo! Search weather shortcut.
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users