Announcement Announcement Module
No announcement yet.
some problems use Jaxb in Spring-WS2.0 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • some problems use Jaxb in Spring-WS2.0

    I'm using Spring-WS2.0 now.I have some problems when i try to use Jaxb for transform XML to Java or Java to XML in Spring-WS2.0.

    I don't know how to use Jaxb in Spring-WS2.0.

    Now there is no any sample or document about JAXB in Spring-WS2.0.

    Please help me,Give me some samples or documents(Client and Server) about use JAXB in Spring-WS2.0.

  • #2
    Jaxb in Spring-WS 2 is automagical. All you have to do is include the jaxb2 jar on the classpath and it will be used as your marshaller/unmarshaller. If you need help setting up the endpoints look here One thing to note is that if your method returns an object as well you must add the @ResponsePayload annotation to the method as mentioned in section in the reference. If you still need an example I can probably cook something up.


    • #3
      Dear jaminh.Thanks to reply.I will try it,but i still hope you can give me a example(client and server),Many thanks.


      • #4
        There is a BUNCH of samples done by Arjen :
        with jaxb, jdom and more !

        with client & server sides for each sample.