Announcement Announcement Module
No announcement yet.
Problem Using Jaxb2Marshaller Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem Using Jaxb2Marshaller

    I am using Jaxb2Marshaller for reading the header elements (Spring WS 2.0.4).
    The below is the definition of my beans in the configuration file.

    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">

    <property name="contextPaths">

    The above values are the package names where my classes are present, based on 3 different schemas.
    The classes use annotations and are not generated using xjc.

    At the time of unmarshalling marshaller is expecting the ObjectFactory class generated by xjc to be present.

    is there any other way that i could unmarshall the headers and process them smoothly.

    I have also tried with the property classesToBeBound instead of contextPaths and specifying the classes, then i am facing UnExpected Element Problem.

    I would not want to generate the classes using xjc which creates the objectFactory class, as these classes are used in other Services as well.

    Any Help in this regard is appreciated.

    Ravikanth Reddy Bapathi.
    Last edited by ravikanth.bapathi; May 3rd, 2012, 01:19 AM.