<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How can I enable webservice call SOAP request and respons logging on the eninge</title><link>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge</link><description>&lt;p&gt;With Axon.ivy 6.0 it is possible to see the webservice call SOAP request and response in the designer log!
How can I enable this debug log on the engine/server.
&lt;img alt="Webservice Log in Designer" src="http://answers.axonivy.com/upfiles/saentisWsLog_0zryxVK.PNG"&gt;&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 28 Sep 2016 15:38:33 -0400</lastBuildDate><item><title>Comment by peters on Christian Strebel's answer</title><link>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge#2061</link><description>&lt;p&gt;You are right Flavio, it was our mistake. We did not write to a new appender. The log level of the default appender was indeed not DEBUG but INFO. Now we write to a new appender in DEBUG level and there we get the full messages.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peters</dc:creator><pubDate>Wed, 28 Sep 2016 15:38:33 -0400</pubDate><guid>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge#2061</guid></item><item><title>Comment by Flavio Sadeghi on Christian Strebel's answer</title><link>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge#2059</link><description>&lt;p&gt;The raw request/response is appended to the log message on DEBUG level only, even the message itself is logged on info-level.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Wed, 28 Sep 2016 14:04:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge#2059</guid></item><item><title>Comment by peters on Christian Strebel's answer</title><link>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge#2058</link><description>&lt;p&gt;We have tried this in Engine 6.1 but the raw XML request is not logged. Is there something else which needs to be configured to show the raw request data?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peters</dc:creator><pubDate>Wed, 28 Sep 2016 10:53:18 -0400</pubDate><guid>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge#2058</guid></item><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge/2005</link><description>&lt;p&gt;Just enable WebService SOAP Message logging for a certain application and process model in your log4jconfig.xml configuration file in the configuration folder of your Axon.ivy engine/server.&lt;/p&gt;
&lt;p&gt;Replace {application} and {process_model} in the logger name below with the name of the application and process model you want to enable the logging.&lt;/p&gt;
&lt;p&gt;Best solution is also to add an own appender which must also have at least the threshold "DEBUG". Set also the additivity=false, so it is only logged to the WebserviceFileLog appender and not to all the appenders configured for the root logger.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;category name="runtimelog.{applicaton}.{process_model}.web_service" class="ch.ivyteam.log.Logger" additivity="false"&amp;gt;
  &amp;lt;priority value="DEBUG"/&amp;gt;
  &amp;lt;appender-ref ref="WebserviceFileLog" /&amp;gt; 
&amp;lt;/category&amp;gt;

&amp;lt;appender name="WebserviceFileLog" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt;
  &amp;lt;param name="Threshold" value="DEBUG"/&amp;gt;
  &amp;lt;param name="File" value="${user.dir}/logs/web_service.log"/&amp;gt;
  &amp;lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&amp;gt;
  &amp;lt;layout class="org.apache.log4j.IvyLog4jLayout"&amp;gt;
    &amp;lt;param name="DateFormat" value="HH:mm:ss.SSS"/&amp;gt;
  &amp;lt;/layout&amp;gt;
&amp;lt;/appender&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Mon, 05 Sep 2016 15:59:24 -0400</pubDate><guid>https://answers.axonivy.com/questions/2004/how-can-i-enable-webservice-call-soap-request-and-respons-logging-on-the-eninge/2005</guid></item></channel></rss>