Hi, we're using Axi2 with xmlbeans data binding to handle Open Travel Alliance (OTA) xml literal messages:
http://www.opentravel.org/Specifications/ReleaseNotes.aspx?spec=2007A The problem is that now we've the need to deal with 2 version of this standard 2007A and 2005A, that use the *same namespace*. Our web service receives 2007A xml and forwards 2005A msg to another webservice of another firm. We've created the xmlbean classes for both, the ones from 2007A in the package OTA_xml and the others from 2005A in the package OTA_2005A, but when using OTA_2005A.OTA....Factory.parse we get ClassCastException. I think that this is due to the fact that when parsing xmlbeans is not able to understand from which package to construct the instances, as the namespace in the two is the same. Am i correct? Is there a way to parse xml of the two types? Many thanks for the great software that axis2/xmlbeans is. Regards -- Bartolomeo Nicolotti SIAP s.r.l. www.siapcn.it v.S.Albano 13 12049 Trinità (CN) Italy ph:+39 0172 652553 centralino: +39 0172 652511 fax: +39 0172 652519