Has anyone run into a situation like this? It may be a little hard to
describe so It better if I just show an example
Given the following 2 classes
Class OperationA extends AbstractOperation {
getMyPropertyA
setMyPropertyA
...
}
Class OperationB extends AbstractOperation {
getMyPropertyB
setMyPropertyB
...
}
Can I unmarshall an xml document like this
<operation type="OperationA">...</operation>
<operation type="OperationB">...</operation>
Instead of
<operationA>....</operationA>
And
<operationB>....</operationB>
I've been able to successfully marshall my desired output, but it seems that
in unmarshalling, it can't resolve the element to its correct class. It
seems like it just uses the first defined class. In this case the element
<operation type="OperationB"> ... </operation>
Is unmarshalled as class OperationA, not OperationB. Does anyone know if I
will need to implement a customer marshaller/unmarhsaller in order to
achieve this? Any help is appreciated.
Thanks,
Tom
-------------------------------------------------------------------------
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