Results 1 to 7 of 7

Thread: Unable to validate xml with Jaxb2Marshaller

  1. #1
    Join Date
    Jun 2005
    Location
    Athens, Greece
    Posts
    57

    Default Unable to validate xml with Jaxb2Marshaller

    In a previous post, I reported a "bug" in jaxb unmarshaller.
    Poutsma corrected the problem by introducing two new class Jaxb1Marshaller and Jaxb2Marshaller.

    After Poutsma made available the nightly source code I came up with the following problem:

    I want to unmarshall an xml that depends to an xml schema that in turn includes other xml schemas, using Jaxb2Marshaller

    Since the method setSchema(Resource) of Jaxb2Marshaller takes only one argument (the resource to the xml schema), I am not able to validate the XML. (Outside spring-oxm I can do it like this).

    I would like to propose the addition of an overloaded setSchema method that accepts either a list (or array) of Resources, or a Schema object.

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Ok, I will fix this, probably this weekend.

    Could you file a JIRA issue for it here?

    Thanks,
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Jun 2005
    Location
    Athens, Greece
    Posts
    57

    Default

    Quote Originally Posted by poutsma
    Could you file a JIRA issue for it here?
    I 've created SWS-23

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by routis
    I 've created SWS-23
    It's fixed: I've added a schemas property to the Jaxb2Marshaller. You can download a new snapshot here.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #5
    Join Date
    Jun 2005
    Location
    Athens, Greece
    Posts
    57

    Default

    Quote Originally Posted by poutsma
    It's fixed: I've added a schemas property to the Jaxb2Marshaller. You can download a new snapshot here.
    Thanks for the fix. Propably, I 'll check it on Monday.

    Keep up the good work.

    By the way, are there any news about moving to SVN and/or Maven? The situation with SF is not acceptable.

  6. #6
    Join Date
    Jun 2005
    Location
    Athens, Greece
    Posts
    57

    Default

    I would like to report that the fix works just fine.

  7. #7
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by routis
    I would like to report that the fix works just fine.
    Great.

    Since SourceForge CVS is down again, I could do very little to fix it at this time.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •