Hello,
I am trying to use two different mapping styles at the same time, not sure if that is allowed but is surely not working. Maybe my setup is wrong.
So if I just put one service with PayloadRootQNameEndpointMapping it works fine. If I add the second service with PayloadRootAnnotationMethodEndpointMapping then only the second one works and I get an error message for the first one: No adapter for endpoint xyzEndpoint. Does your endpoint implement a supported interface like MessageHandler or PayloadEndpoint?
The first one is like this:
The second one is:Code:<bean id="disseminationEndpoint" class="...DisseminationEndpoint" /> <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping"> <property name="mappings"> ...
While debugging it at the point where exception is thrown - MessageDispatcher.getEndpointAdapter(Object endpoint) - endpointAdapters will either have 4 elements (MessageEndpointAdapter, PayloadEndpointAdapter, MessageMethodEndpointAdapter, PayloadMethodEndpointAdapter) if I only have the first service. If I add the second service then endpointAdapters will only have 1 element (GenericMarshallingMethodEndpointAdapter)Code:<bean id="corporationEndpoint" class="...CorporationEndpoint" /> <bean id="marshaller" class="org.springframework.oxm.xmlbeans.XmlBeansMarshaller" /> <bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter"> <constructor-arg ref="marshaller"/> </bean> <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" />
Why can't they co-exist? Anything I can do to make them work at the same time? It may be untypical to do this but I do need it. I am using spring-ws-1.5.9.


Reply With Quote
