I have advanced on this topic somewhat, and am now successfully handling 3 of 4 use cases that i require to handle. These are
- V1 marshal *Message (numerous message types) to message element - V2 marshal *Message (numerous message types) to *Message element (one element per Message type) - V2 unmarshal *Message elements to *Message types I am now missing the unmarshalling of message elements to specific *Message type. My xml looks like this: <message> <subject>registerMessage</subject> </message> >From this message i want to create a specific Message type based on the subject. I have created a binding that uses a factory method newInstance(IUnmarshallingContext), but so far i am unable to work out how to handle the unmarshalling context correctly to get the subject text to determine the type of message to return whilst not disrupting the normal unmarshalling operation. Can you please help??? Kuppe wrote: > > i am trying to create a binding where it is possible to marshal/unmarshal > a Message object into different root element names based on the content of > the Message instance. Is there any way that this can be accomplished??? > > I have already created a custom marshaller as per example21, and this > works correctly for marshalling. I have still not determined how it is > possible to bind multiple root element names to a single Message mapping. > > Thanks in advance. > -- View this message in context: http://www.nabble.com/dynamic-root-element-name-tf2169861.html#a6016944 Sent from the jibx-users forum at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users