Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-33

CastorMarshaller is missing a way to specify the Castor-generated class to use during unmarshalling.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 M1
    • Fix Version/s: 1.0 M2
    • Component/s: OXM
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        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.

        Show
        arjen.poutsma Arjen Poutsma added a comment - 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.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        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/

        Show
        arjen.poutsma Arjen Poutsma added a comment - 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/

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            mskendrick Shannon Kendrick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: