Announcement Announcement Module
Collapse
No announcement yet.
some problems use Jaxb in Spring-WS2.0 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 http://static.springsource.org/sprin...r.html#d0e2355. 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 5.4.1.2 in the reference. If you still need an example I can probably cook something up.

    Comment


    • #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.

      Comment


      • #4
        There is a BUNCH of samples done by Arjen :
        https://src.springframework.org/svn/...trunk/samples/
        with jaxb, jdom and more !

        with client & server sides for each sample.

        Comment

        Working...
        X