Announcement Announcement Module
Collapse
No announcement yet.
Mixing annotations with xml configuration of endpoints Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mixing annotations with xml configuration of endpoints

    Hi,

    In chapter 5 of the documentation, it would be helpful, if the chapter was updated with the information about how to mix Annotation based web service definition with plain xml defined web services.

    The annotation part describes how to add the
    Code:
    org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter
    and the
    Code:
    org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping
    but then the EndpointAdapter has been specified in the ApplicationContext, and the MessageDispatcher does not use it's magic default strategy any longer.
    To fix this you would need to insert another bean definition in you ApplicationContext xml:

    Code:
    <bean class="org.springframework.ws.server.endpoint.adapter.MessageEndpointAdapter" />
    Now the MessageDispatcher will have both EndpointAdapters defined, and work with both xml defined web services e.g.
    Code:
    org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping
    and the annotations based mappings using e.g.
    Code:
    org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping
    Just for info

    @Arjen: Would it be possible to ask the MessageDispatcher to allow for using both the default strategy and look for annotations automatically, since defining these beans by hand seems like an unnecessary step, but maybe I'm just too ignorant to the design?.

    Thanks,
    NEKO

  • #2
    Thanks for the clarification. Could you create a Jira issue for that?

    Comment


    • #3
      I will.

      Thanks,
      NEKO

      Comment

      Working...
      X