Soap javax.xml.ws.asynchHandler是一个接口,JAXB可以';t处理接口

Soap javax.xml.ws.asynchHandler是一个接口,JAXB可以';t处理接口,soap,jaxb,jax-ws,reactive,Soap,Jaxb,Jax Ws,Reactive,我正在尝试实现一个JAX-WSWeb服务,它是异步的,并连接到ProjectReactor。 我已经实现了客户端代码,如下所示: Mono<IsAgentAuthorizedResponse> isAuthResponse = Mono.<IsAgentAuthorizedResponse>create(sink -> servicePortType.isAgentAuthorizedAsync(isAgentAuthorizedRequestBea

我正在尝试实现一个JAX-WSWeb服务,它是异步的,并连接到ProjectReactor。 我已经实现了客户端代码,如下所示:

        Mono<IsAgentAuthorizedResponse> isAuthResponse = Mono.<IsAgentAuthorizedResponse>create(sink -> servicePortType.isAgentAuthorizedAsync(isAgentAuthorizedRequestBean, outputFuture -> {
            try {
                sink.success(outputFuture.get());
            } catch (Exception e) {
                sink.error(e);
            }
        }));
Mono isAuthResponse=Mono.create(sink->servicePortType.isAgentAuthorizedAsync(isAgentAuthorizedRequestBean,outputFuture->{
试一试{
sink.success(outputFuture.get());
}捕获(例外e){
错误(e);
}
}));
SEI如下所示

@WebMethod(exclude = true)
@RequestWrapper(localName = "isAgentAuthorized", targetNamespace = "http://authapi.agentauth.rakuten.com", className = "com.demo.agentauth.authapi.IsAgentAuthorized")
@ResponseWrapper(localName = "isAgentAuthorizedResponse", targetNamespace = "http://authapi.agentauth.demo.com", className = "com.demo.agentauth.authapi.IsAgentAuthorizedResponse")
public Future<?> isAgentAuthorizedAsync(
    @WebParam(name = "request", targetNamespace = "")
    IsAgentAuthorizedRequestBean request,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<IsAgentAuthorizedResponse> asyncHandler);
@WebMethod(exclude=true)
@RequestWrapper(localName=“isAgentAuthorized”,targetNamespace=”http://authapi.agentauth.rakuten.com,className=“com.demo.agentututh.authapi.IsAgentAuthorized”)
@ResponseWrapper(localName=“isAgentAuthorizedResponse”,targetNamespace=”http://authapi.agentauth.demo.com,className=“com.demo.agentututh.authapi.IsAgentAuthorizedResponse”)
公共未来信息同步(
@WebParam(name=“request”,targetNamespace=“”)
IsAgentAuthorizedRequestBean请求,
@WebParam(name=“asyncHandler”,targetNamespace=”“)
AsyncHandler(异步处理程序);
我得到以下错误:

com.sun.xml.internal.ws.spi.db.databindingeexception:com.sun.xml.internal.bind.v2.runtime.illegalannotations异常:2次illegalannotationexception计数 javax.xml.ws.asynchHandler是一个接口,JAXB不能处理接口。 此问题与以下位置有关: 在javax.xml.ws.asynchHandler 在public javax.xml.ws.asynchHandler com.bjit.consume.async.esanew.way.jaxws.IsAgentAuthorizedAsync.asynchHandler 在com.bjit.consume.async.esanew.way.jaxws.IsAgentAuthorizedAsync上 java.util.concurrent.Future是一个接口,JAXB无法处理接口。 此问题与以下位置有关: 在java.util.concurrent.Future 在public java.util.concurrent.Future com.bjit.consume.async.esanew.way.jaxws.IsAgentAuthorizedAsyncResponse.\u返回 位于com.bjit.consume.async.esanew.way.jaxws.isagentAuthorizationDaSyncResponse

原因:com.sun.xml.internal.bind.v2.runtime.illegalannotations异常:2次IllegalAnnotationExceptions计数