JAXB CustomBuilder support in JAXWS layer.
------------------------------------------
Key: AXIS2-3546
URL: https://issues.apache.org/jira/browse/AXIS2-3546
Project: Axis 2.0 (Axis2)
Issue Type: Improvement
Components: jaxws
Reporter: Rich Scheuerle
Assignee: Rich Scheuerle
Problem:
We want to unmarshall the soap body payload as an OMSourcedElement backed by a
JAXB object.
Solution:
The proposed solution is to create a new class, JAXBCustomBuilder.
The JAXBCustomBuilder is registered on the StAXOMBuilder, and it will
automatically demarshall the payload into an OMSourcedElement backed by a JAXB
object.
Here is a quick summary
1) Receive first message.
2) The JAXWS unmarshalling code builds a JAXBContext and unmarshalls the
payload.
3) The JAXWS unmarshalling code builds a JAXBCustomBuilder with the same
JAXBContext.
4) The JAXBCustomBuilder is placed on the ServiceContext.
5) Receive second message
6) The Dispatch code associates the ServiceContext with a MessageContext.
6a) This event is intercepted and triggers the JAXBCustomBuilder to be
registered on the StAXOMBuilder.
7) When the StAX events of the payload are pulled, the JAXB object is
automatically unmarshalled.
Note that this defect requires changes that are being made as part of
WSCOMMONS-303.
Thanks,
Rich
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]