vendredi 29 mai 2015

How to dump SOAP request in a variable in my java web service

I have a web service in which user invokes using SOAPUI. I want to dump the contents of SOAP request into a variable. I know that com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump dumps to console but I want to dump whatever the user input in SOAPUI (SOAP request XML) into a variable in my web service class.

I tried using SOAPMessageContext soapMsgContext = (SOAPMessageContext) webservicecontext.getMessageContext(); to get SOAP request but it gives cast exception.

Any ideas ? Also is there any way to implement SOAP handler in server side without using @Handler annotation (all done in web service code) ?

Thank you,




Aucun commentaire:

Enregistrer un commentaire