Spring 3(SWS2):之间的区别

| 当尝试一个仅带有一个带注释的“ 0”类的简单Web Service Hello World示例时,使用“ 1”命名空间时不会注册端点。 但是,通过添加通常的“ 2”,一切正常,可以正确注册Endpoint类。 这仅对于
@Endpoint
注释正确,所有其他注释(
@RequestPayload
@ResponsePayload
@PayloadRoot
)将按预期由sws-namespace注册。 namespace0ѭ注释是否也不能由该命名空间处理?
<beans>
   <!-- works for all annotations except @Endpoint -->
    <sws:annotation-driven/>

    <!-- when activated, @Endpoint is registered correctly <context:component-scan/> -->
</beans>
    
已邀请:
        这是一个已知的SWS错误:https://jira.springsource.org/browse/SWS-702。     
        现在,两者都用于:
<context:component-scan base-package=\"com.coral.project.endpoints\"/>

<sws:annotation-driven marshaller=\"marshaller\" unmarshaller=\"marshaller\"/>
这会发现@Endpoint和@ PayloadRoot,@ ResponsePayload批注。 这是他们在Spring-WS参考中告诉您的方法: http://static.springsource.org/spring-ws/sites/2.0/reference/html/tutorial.html#tutorial.implementing.endpoint     

要回复问题请先登录注册