You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When unmarshalling non-@XmlRoot element types there is a need to specify the expected type,
and I have to use a workaround to work with the native jaxb2 unmarshaller, like this:
JAXBElement<S2SDDDirectDebitTransactionInformation2> element = ebaUnmarshaller.getJaxbContext().createUnmarshaller().unmarshal( source, S2SDDDirectDebitTransactionInformation2.class );
It would be handy to expose a method to give the expected return type - and this should be a generic/parameterized method.
See: http://www.docjar.com/docs/api/javax/xml/bind/Unmarshaller.html "Unmarshal a root element that is globally declared" and the following section for an thorough explaination.
Affects: 1.5.8
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered:
David J. M. Karlsen opened SWS-580 and commented
When unmarshalling non-
@XmlRoot
element types there is a need to specify the expected type,and I have to use a workaround to work with the native jaxb2 unmarshaller, like this:
JAXBElement<S2SDDDirectDebitTransactionInformation2> element = ebaUnmarshaller.getJaxbContext().createUnmarshaller().unmarshal( source, S2SDDDirectDebitTransactionInformation2.class );
It would be handy to expose a method to give the expected return type - and this should be a generic/parameterized method.
See: http://www.docjar.com/docs/api/javax/xml/bind/Unmarshaller.html "Unmarshal a root element that is globally declared" and the following section for an thorough explaination.
Affects: 1.5.8
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: