Results 1 to 2 of 2

Thread: Newbie question

  1. #1
    Join Date
    Sep 2006
    Posts
    8

    Default Newbie question

    Hi all,

    i'm, new to SI and need help with following scenario. It's basically a sync document validation service, that's consisted of few steps. I'm, using RmiInbound gateway as starting point

    1. XsdValidator receives message (javax.xml.transform.source) and performs xsd validation of document. Validator returns object of type ValidationResponse(boolean requestValid, String message)
    2. If validationResponse.requestvalid is true I'd like to send the input document (source) to transformer which transforms the source to my domain object(DocumentPackageImportRequest). If the validationResponse.requestvalid is false the validationResponse (containing validation error details) should be returned to caller.
    3. After the transformation DocumentPackageImportRequest object is sent to BLValidator (performs "bussines validation") which again returns object of type ValidationResponse to the caller.

    Thanks in advance,

    Simon

  2. #2
    Join Date
    Oct 2007
    Location
    London, England
    Posts
    108

    Default

    Hi Simon
    There is not any out of the box support for validating xml payloads as yet although this is intended to be there for 1.0.2 INT-558.

    One possibility here would be to add the validation response to the header then route on the basis of the header value. See the section in the reference docs for an example of a router that takes a message header and routes accordingly.
    http://static.springframework.org/sp...ter-annotation
    Jonas Partner
    OpenCredo

Posting Permissions

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