没有用于端点的适配器 [英] No adapter for endpoint
本文介绍了没有用于端点的适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有@Endpoint批注的Java类.在尝试添加另一个参数-MessageContext并获得端点无适配器"之前,它一直运行良好.
在下面查看我的方法签名:
@PayloadRoot(localPart ="PolicyNewBusinessQuoteRequest",名称空间= TARGET_NAMESPACE)@ResponsePayload公共PolicyNewBusinessQuoteResponseDocument processQuoteRequest(@RequestPayload PolicyNewBusinessQuoteRequestDocument requestDocument,MessageContext messageContext)引发异常{}
解决方案
我已经找到了解决自己问题的方法:
I have a Java class with the @Endpoint annotation. It was working fine until I try to add another parameter - MessageContext and I am getting the "No adapter for endpoint"
See my method signature below:
@PayloadRoot(localPart = "PolicyNewBusinessQuoteRequest", namespace = TARGET_NAMESPACE)
@ResponsePayload
public PolicyNewBusinessQuoteResponseDocument processQuoteRequest(@RequestPayload PolicyNewBusinessQuoteRequestDocument requestDocument, MessageContext messageContext) throws Exception {
}
解决方案
I have found the solution to my own problem:
这篇关于没有用于端点的适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文