Results 1 to 3 of 3

Thread: New optional elements in schema

  1. #1
    Join Date
    Jan 2008
    Posts
    3

    Default New optional elements in schema

    Hello,

    I want my webservices to be as 'loosely coupled' as possible, while keeping it programmer-friendly. So I want to generate classes from an XML schema. However, I want to be able to add new optional fields to the schema, without breaking existing services and clients.

    Which of the available Object/XML mapping strategies can be configured to ignore unknown elements?

  2. #2

    Default

    Try Jaxb2 without validation. You should omit the schema* property of the org.springframework.oxm.jaxb.Jaxb2Marshaller in configuration, or more generally, the JAXBContext must be instantiated without ValidationHandler.

    Also you may want to add org.springframework.ws.endpoint.interceptor.Payloa dValidatingInterceptor to the endpoint mapping instance to validate payloads before/after unmarshalling/marshalling

  3. #3
    Join Date
    Jan 2008
    Posts
    3

    Default

    Thanks for the answer. I wonder if there are java 1.4 options as well. Anyone?

Posting Permissions

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