没有用于端点的适配器 [英] No adapter for endpoint

查看:80
本文介绍了没有用于端点的适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有@Endpoint批注的Java类.在尝试添加另一个参数-MessageContext并获得端点无适配器"之前,它一直运行良好.

在下面查看我的方法签名:

  @PayloadRoot(localPart ="PolicyNewBusinessQuoteRequest",名称空间= TARGET_NAMESPACE)@ResponsePayload公共PolicyNewBusinessQuoteResponseDocument processQuoteRequest(@RequestPayload PolicyNewBusinessQuoteRequestDocument requestDocument,MessageContext messageContext)引发异常{} 

解决方案

我已经找到了解决自己问题的方法:

http://forum.spring.io/forum/spring-projects/web-services/126322-unable-to-include-and-access-messagecontext-on-endpoint-method

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:

http://forum.spring.io/forum/spring-projects/web-services/126322-unable-to-include-and-access-messagecontext-on-endpoint-method

这篇关于没有用于端点的适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆