Handling JAXBElement<Byte> Soaprequest in SpringWS

452 views Asked by At

Am having below enpoint method. Here am struct with processing the 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*/
}

My webservices is hitting the above endpoint and the Soap request is having JAXBElement byte[] of base64Binary objects.Am facing an issue with processing the above JAXBElement request object and getting the actual request from that. please anyone help me.

1

There are 1 answers

0
Mohan On BEST ANSWER

I just rewritten the above method declaration like below, it worked out.

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*/
}

change description: Declaration changed from JAXBElement<Byte> to JAXBElement<String>