Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CastorMarshaller is missing a way to specify the Castor-generated class to use during unmarshalling. [SWS-33] #192

Closed
gregturn opened this issue Jun 20, 2006 · 2 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Contributor

Shannon Kendrick opened SWS-33 and commented

The class org.springframework.oxm.castor.CastorMarshaller is unable to unmarshal XML to Java unless a mapping file is used. Typically a mapping file is NOT used with Castor when using Castor-generated Java classes (generated from an XML schema).

The method org.exolab.castor.xml.Unmarshaller.unmarshal(Class clazz) should be used when the class type is specified.


Affects: 1.0 M1

@gregturn
Copy link
Contributor Author

Arjen Poutsma commented

I will add a targetClass property to the CastorMarshaller, just like with the JibxMarshaller. That does mean, however, that the CastorMarshaller is tied to a specific class, and you would need to configure multiple marshallers for multiple classes.

@gregturn
Copy link
Contributor Author

Arjen Poutsma commented

the code is in svn. You can check it using svn from this URL:

https://svn.sourceforge.net/svnroot/springframework/spring-projects/trunk/spring-ws/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants