-
1. Re: How to print SOAP messages in a BA transaction
kdesineedi Jan 2, 2012 8:14 AM (in response to adrianfdz)Hi Adrian,
I am also facing the same problem.Were you able to find a solution for this?I am able to see both the request/response in the server.log
Saludos
Kartheek
-
2. Re: How to print SOAP messages in a BA transaction
adrianfdz Jan 2, 2012 9:20 AM (in response to kdesineedi)Hi!
I solved this by editing the src of jboss xts, adding several SOAP handlers.
Regards
-
3. Re: How to print SOAP messages in a BA transaction
kdesineedi Jan 3, 2012 1:48 AM (in response to adrianfdz)Thanks Adrian.Is it possible for you to provide us with some detailed steps of what you have done?
~Saludos
Kartheek
-
4. Re: How to print SOAP messages in a BA transaction
paul.robinson Jan 4, 2012 5:11 AM (in response to kdesineedi)1 of 1 people found this helpfulKartheek,
Probably the easiest way to add extra SOAP handlers, would be to edit the handlers XML file. This file is referenced from the @HandlerChain annotation on your Web service. You will see the XTS handler in this file. Add yours to the list. This prevents you from having to edit the XTS source code.
You could also use a tool like TCPMon or soapUI to intercept SOAP messages, without editing the application code.
Paul.
-
5. Re: How to print SOAP messages in a BA transaction
adrianfdz Jan 4, 2012 5:42 AM (in response to paul.robinson)Paul Robinson escribió:
Probably the easiest way to add extra SOAP handlers, would be to edit the handlers XML file. This file is referenced from the @HandlerChain annotation on your Web service. You will see the XTS handler in this file. Add yours to the list. This prevents you from having to edit the XTS source code.
This allows you to get the SOAP sended or recieved by you're web service but I needed to get the SOAP messages exchanged by the coordinator and the participant in a transaction
In order to get these messages, you can add your SOAP handler by editting the XTS/WS-T/dev/dd/ws-t_handlers.xml.
Paul Robinson escribió:
You could also use a tool like TCPMon or soapUI to intercept SOAP messages, without editing the application code.
If you only need to get the SOAP messages, using a tool could be the best solution
-
6. Re: How to print SOAP messages in a BA transaction
adinn Jan 4, 2012 6:31 AM (in response to adrianfdz)Another alternative is to use Byteman to inject code which prints the SOAP messages. That way you don't need to rebuild/redeploy XTS. In fact you can even install the Byteman agent and the trace code while the AS and your XTS app is running and then remove it later.
-
7. Re: How to print SOAP messages in a BA transaction
kdesineedi Jan 5, 2012 10:43 AM (in response to adinn)Thanks all.I have added the following configuration to the jbosslog4j xml and routed them to a custom log file.
<category name="org.jboss.ws.core.MessageTrace">
<priority value="TRACE"/>
<appender-ref ref="<my_log_file_name>"/>
</category>
Saludos
~K