0

我有以下 enpoint 方法。这是处理 Soaprequest 的结构。

public JAXBElement<com.schema.get_response.v2.GetResponseType> handleGetresponse(@RequestPayload JAXBElement<Byte> Soaprequest){
.......................................
/* how to process the Soaprequest which contains the byte[] of base64Binary objects*/
}

我的 Web 服务正在访问上述端点,并且 Soap 请求具有 base64Binary 对象的 JAXBElement byte[]。在处理上述 JAXBElement 请求对象并从中获取实际请求时遇到问题。请任何人帮助我。

4

1 回答 1

0

我刚刚重写了上面的方法声明,如下所示,它成功了。

public JAXBElement<com.schema.get_response.v2.GetResponseType> handleGetresponse(@RequestPayload JAXBElement<String> Soaprequest){
.......................................
/* how to process the Soaprequest which contains the byte[] of base64Binary objects*/
}

更改说明:声明从 JAXBElement<Byte> 更改为 JAXBElement<String>

于 2013-09-13T16:05:17.610 回答