jaxb with Switch or Strategy?

Discussion in 'Java' started by Peter Horlock, Dec 3, 2009.

  1. Hi,

    we got a partner sending SOAP,
    which we unmarshal using JAXB.
    The answer may be a regular response
    or an error. However, the error document is totally different from
    the regular answer, it's a different document...

    Is there a way to put some kind of a switch into JAXB,
    so based on the response it will always return the related
    object?

    Thanks,

    Peter
     
    Peter Horlock, Dec 3, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.