<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to get a SOAP request from server side ?</title><link>https://answers.axonivy.com/questions/2121/how-to-get-a-soap-request-from-server-side</link><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I created an Ivy webservice, and now from the service, I want to capture the raw XML from SOAP Message that user requests to my webservice to save to save somewhere. Is there any method to do it in Ivy ? I did a bit research and it seems possible in &lt;a href="http://stackoverflow.com/questions/522395/getting-raw-xml-from-soapmessage-in-java"&gt;pure Java &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you give me any idea ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2121/how-to-get-a-soap-request-from-server-side" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 24 Oct 2016 09:12:30 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2121/how-to-get-a-soap-request-from-server-side/2129</link><description>&lt;p&gt;&lt;strong&gt;Answer for 6.4.1 or younger&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;By default the request and response SOAP-ENVELOPE is logged to the runtimeLogger with the category web_service_process. 
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/wsProcessSoapEnvelopeLog.PNG"&gt;
You may need to adjust your log4jconfig.xml so that the logs are collected in an extra log file: &lt;a href="http://developer.axonivy.com/doc/latest/EngineGuideHtml/monitoring.html#d5e4421"&gt;http://developer.axonivy.com/doc/latest/EngineGuideHtml/monitoring.html#d5e4421&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Answer for 6.0 until 6.4&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is possible by registering a LogginIn/Out Intercepter for the webservice technology that we use (CXF). See &lt;a href="http://stackoverflow.com/questions/8065737/how-to-log-apache-cxf-soap-request-and-soap-response-using-log4j"&gt;http://stackoverflow.com/questions/8065737/how-to-log-apache-cxf-soap-request-and-soap-response-using-log4j&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately it seems like Designer users have no access to get into the relevant code parts to register custom interceptors. But I think that would be cool improvement for the future...&lt;/p&gt;
&lt;p&gt;For now I can provide you a patch where these logging interceptors are in use. Just tell me the ivy version where you need it and whether you need it for a designer or an engine.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 24 Oct 2016 09:12:30 -0400</pubDate><guid>https://answers.axonivy.com/questions/2121/how-to-get-a-soap-request-from-server-side/2129</guid></item></channel></rss>