{"id":4448,"date":"2019-09-21T19:11:32","date_gmt":"2019-09-21T17:11:32","guid":{"rendered":"https:\/\/www.dontesta.it\/?p=4448"},"modified":"2020-09-10T23:41:16","modified_gmt":"2020-09-10T21:41:16","slug":"how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework","status":"publish","type":"post","link":"https:\/\/www.dontesta.it\/en\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/","title":{"rendered":"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework"},"content":{"rendered":"<p><\/p>\n<p style=\"text-align: justify;\">With the previous article <a href=\"https:\/\/www.dontesta.it\/2019\/09\/05\/how-to-implement-a-soap-client-using-jax-ws-liferay-infrastructure\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to implement a SOAP client using JAX-WS Liferay infrastructure<\/a> we were able to see how to build a <strong>SOAP<\/strong> client using the <strong>JAX-WS<\/strong> infrastructure that Liferay offers to developers.<\/p>\n<p style=\"text-align: justify;\">In this article we will see how to exploit the <a href=\"https:\/\/www.dontesta.it\/2012\/02\/28\/come-realizzare-handlers-in-jax-ws\/\"><strong>JAX-WS Handlers<\/strong><\/a> and the <a href=\"https:\/\/amzn.to\/2kMq4Dd\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Liferay Audit Framework<\/strong><\/a> with the aim of auditing SOAP messages (<em>request and response<\/em>) of our custom SOAP Web Services. <strong>Finally I will leave you a nice bonus.<\/strong><\/p>\n<p style=\"text-align: justify;\">If you would like to learn more about how to develop SOAP and REST services on Liferay in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Java_API_for_XML_Web_Services\" target=\"_blank\" rel=\"noopener noreferrer\">JAX-WS<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Java_API_for_RESTful_Web_Services\" target=\"_blank\" rel=\"noopener noreferrer\">JAX-RS<\/a> standards, I suggest you read the document <a href=\"https:\/\/www.slideshare.net\/amusarra\/jaxws-e-jaxrs\" target=\"_blank\" rel=\"noopener noreferrer\">How to develop SOAP and REST services in JAX-WS and JAX-RS standard on Liferay<\/a> that I have presented at the 2016 Liferay Symposium.<\/p>\n<p style=\"text-align: justify;\">As for the in-depth information on <em>Liferay Audit<\/em>, I suggest you download the <a href=\"https:\/\/liferaypartneritalia.smc.it\/liferay-bootcamp-2019\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Liferay Boot Camp 2019<\/strong><\/a> material held on May 16th in Rome and organized by <a href=\"https:\/\/www.smc.it\" target=\"_blank\" rel=\"noopener noreferrer\">SMC<\/a>. In addition to the #SecurityAudit theme, many other interesting topics have been discussed.<\/p>\n<p style=\"text-align: justify;\">All the code shown in this article is available on the GitHub repository <a href=\"http:\/\/bit.ly\/2kH48cw\" target=\"_blank\" rel=\"noopener noreferrer\">liferay-72-soap-client-examples<\/a> and tested on <a href=\"https:\/\/sourceforge.net\/projects\/lportal\/files\/Liferay%20Portal\/7.2.0%20GA1\/\" target=\"_blank\" rel=\"noopener noreferrer\">Liferay 7.2 GA1<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h2>1. The use case<\/h2>\n<p style=\"text-align: justify;\">We have the case of having a SOAP service on which we need to do an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Audit_trail\" target=\"_blank\" rel=\"noopener noreferrer\">audit trail<\/a>, we need to track SOAP messages (request and response). <strong>How to realize this need?<\/strong><\/p>\n<p style=\"text-align: justify;\">Everything you need to reach the goal is already available inside Liferay's tool kit. The tools we are going to use are:<\/p>\n<ul>\n<li>The Liferay Audit Framework<\/li>\n<li>The Liferay SOAP Extender<\/li>\n<li>JAX-WS Handler API<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>2. How to implement the JAX-WS Handler<\/h2>\n<p style=\"text-align: justify;\">We should therefore develop a JAX-WS Handler of type <strong><em>Protocol Handler<\/em><\/strong> because the processed level is the protocol level, in this case <em>SOAP<\/em>.<\/p>\n<p style=\"text-align: justify;\">We are in an <a href=\"https:\/\/osgi.org\/\" target=\"_blank\" rel=\"noopener noreferrer\"><em>OSGi<\/em><\/a> context, therefore the handler will be implemented as <strong>OSGi Component<\/strong> (<a href=\"https:\/\/osgi.org\/specification\/osgi.cmpn\/7.0.0\/service.component.html\" target=\"_blank\" rel=\"noopener noreferrer\">Declarative Services Specification<\/a>) and will use the <em>Liferay Audit API<\/em> with the aim of capturing and sending SOAP messages of <em><strong>in bound<\/strong><\/em> and <em><strong>out bound<\/strong><\/em> to the system of audit.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/handler\/AuditLogHandler.java\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Audit Log Handler<\/strong><\/a> is the name of the <em>OSGi component<\/em> that implements a <em>JAX-WS Handler<\/em> and in particular a <a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/index.html?javax\/xml\/ws\/handler\/soap\/SOAPHandler.html\" target=\"_blank\" rel=\"noopener noreferrer\">SOAPHandler<\/a>.<\/p>\n<p style=\"text-align: justify;\">Of the code shown, pay attention to the two properties of the <em>component<\/em> that are highlighted, <strong><em>service<\/em><\/strong> and <strong><em>property<\/em><\/strong>. The first property specifies the service interface, in this case <a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/javax\/xml\/ws\/handler\/Handler.html\" target=\"_blank\" rel=\"noopener noreferrer\">javax.xml.ws.handler.Handler<\/a>, the second sets a key value pair that will then be used (via <a href=\"https:\/\/osgi.org\/javadoc\/r6\/core\/org\/osgi\/framework\/Filter.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>OSGi Filter<\/strong><\/a>) by the Liferay Extender to activate the handler.<\/p>\n<p style=\"text-align: justify;\">It is advisable to use a key for <em>OSGi Filter<\/em> that is self explanatory and I believe that <em>audit.log.jax.ws.handler.filters=true<\/em> is.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"theme:solarized-dark toolbar:1 lang:java mark:3-4 decode:true\" title=\"Source Code 1 - Intestazione del component Audit Logger Handler\">@Component(\r\n\timmediate = true, \r\n\tproperty = \"audit.log.jax.ws.handler.filters=true\",\r\n\tservice = Handler.class\r\n)\r\npublic class AuditLogHandler implements SOAPHandler&lt;SOAPMessageContext&gt; {\r\n\r\n\t@Override\r\n\tpublic void close(MessageContext context) {\r\n\t}\r\n\r\n\t@Override\r\n\tpublic Set&lt;QName&gt; getHeaders() {\r\n\t\treturn new HashSet&lt;&gt;();\r\n\t}\r\n\r\n\t@Override\r\n\tpublic boolean handleFault(SOAPMessageContext context) {\r\n\t\t_doHandleMessage(context);\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\t@Override\r\n\tpublic boolean handleMessage(SOAPMessageContext context) {\r\n\t\t_doHandleMessage(context);\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tprivate void _doHandleMessage(SOAPMessageContext context) {\r\n\t\t...\r\n\t}\r\n\r\n        ...\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>The management of the SOAP message (including the fault one) is managed by the private <a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/handler\/AuditLogHandler.java#L86\" target=\"_blank\" rel=\"noopener noreferrer\">_doHandleMessage (context)<\/a> method called by the two public methods of the Handler interface:<\/p>\n<ul>\n<li style=\"text-align: justify;\"><a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/javax\/xml\/ws\/handler\/Handler.html#handleMessage-C-\" target=\"_blank\" rel=\"noopener noreferrer\"><em>handleMessage(SOAPMessageContext context)<\/em><\/a><\/li>\n<li style=\"text-align: justify;\"><a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/javax\/xml\/ws\/handler\/Handler.html#handleFault-C-\" target=\"_blank\" rel=\"noopener noreferrer\"><em>handleFault(SOAPMessageContext context)<\/em><\/a>.<\/li>\n<\/ul>\n<p>The following code shows the implementation of the <em>_doHandleMessage(SOAPMessageContext context)<\/em> method which in particular:<\/p>\n<ul>\n<li>Writes the SOAP message to a <em>Byte Array Output Stream<\/em>;<\/li>\n<li>Prepare a specific audit message, both for the SOAP message in bound and for the out bound message using the static method <a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/audit\/AuditEventUtil.java#L50\" target=\"_blank\" rel=\"noopener noreferrer\">AuditEventUtil.getAuditMessage()<\/a>;<\/li>\n<li>Send the audit message to the Liferay Audit system using the static method <a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/audit\/AuditEventUtil.java#L114\" target=\"_blank\" rel=\"noopener noreferrer\">AuditEventUtil.sendAuditMessage()<\/a>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<pre class=\"theme:solarized-dark toolbar:1 lang:java decode:true\" title=\"Source Code 2 - Implementazione del metodo _doHandleMessage\">@Component(\r\n\timmediate = true, property = \"audit.log.jax.ws.handler.filters=true\",\r\n\tservice = Handler.class\r\n)\r\npublic class AuditLogHandler implements SOAPHandler&lt;SOAPMessageContext&gt; {\r\n\r\n\t...\r\n\r\n\tprivate void _doHandleMessage(SOAPMessageContext context) {\r\n\t\tBoolean isOutBound = (Boolean)context.get(\r\n\t\t\tMessageContext.MESSAGE_OUTBOUND_PROPERTY);\r\n\r\n\t\tSOAPMessage soapMessage = context.getMessage();\r\n\r\n\t\tString newCorrelationId = PortalUUIDUtil.generate();\r\n\t\tString currentCorrelationId = GetterUtil.getString(\r\n\t\t\tcontext.get(_CORRELATION_ID));\r\n\r\n\t\tif (Validator.isNull(currentCorrelationId)) {\r\n\t\t\tcurrentCorrelationId = newCorrelationId;\r\n\t\t\tcontext.put(_CORRELATION_ID, newCorrelationId);\r\n\t\t\tcontext.setScope(_CORRELATION_ID, MessageContext.Scope.APPLICATION);\r\n\t\t}\r\n\r\n\t\ttry (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {\r\n\t\t\tAuditMessage auditMessage;\r\n\t\t\tMap&lt;String, Serializable&gt; additionalInfo = new HashMap&lt;&gt;();\r\n\r\n\t\t\tsoapMessage.writeTo(baos);\r\n\r\n\t\t\tif (isOutBound) {\r\n\t\t\t\tadditionalInfo.put(\r\n\t\t\t\t\t_OUT_BOUND_MESSAGE, new String(baos.toByteArray()));\r\n\r\n\t\t\t\tauditMessage = AuditEventUtil.getAuditMessage(\r\n\t\t\t\t\tadditionalInfo, AuditLogHandler.class.getName(),\r\n\t\t\t\t\tcurrentCorrelationId,\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_OUTBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeCodeDescription(),\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_OUTBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeCode(),\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_OUTBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeId(),\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_OUTBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeCodeDescription());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tadditionalInfo.put(\r\n\t\t\t\t\t_IN_BOUND_MESSAGE, new String(baos.toByteArray()));\r\n\r\n\t\t\t\tauditMessage = AuditEventUtil.getAuditMessage(\r\n\t\t\t\t\tadditionalInfo, AuditLogHandler.class.getName(),\r\n\t\t\t\t\tcurrentCorrelationId,\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_INBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeCodeDescription(),\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_INBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeCode(),\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_INBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeId(),\r\n\t\t\t\t\tAuditEventKeys.SERVICE_SOAP_TRACE_INBOUND_EVENT.\r\n\t\t\t\t\t\tgetAuditEventTypeCodeDescription());\r\n\t\t\t}\r\n\r\n\t\t\tAuditEventUtil.sendAuditMessage(auditMessage);\r\n\t\t}\r\n\t\tcatch (IOException | SOAPException e) {\r\n\t\t\tif (_log.isErrorEnabled()) {\r\n\t\t\t\t_log.error(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t...\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>The information of interest to us drawn from the audit system is:<\/p>\n<ol>\n<li>The type of event that can be <em><a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/audit\/AuditEventKeys.java#L30\" target=\"_blank\" rel=\"noopener noreferrer\">SERVICE_SOAP_TRACE_INBOUND_EVENT<\/a><\/em> or <em><a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/audit\/AuditEventKeys.java#L33\" target=\"_blank\" rel=\"noopener noreferrer\">SERVICE_SOAP_TRACE_OUTBOUND_EVENT<\/a><\/em>;<\/li>\n<li>The <em><a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/handler\/AuditLogHandler.java#L92\" target=\"_blank\" rel=\"noopener noreferrer\">correlationId<\/a><\/em> whose content is the <a href=\"https:\/\/it.wikipedia.org\/wiki\/Universally_unique_identifier\" target=\"_blank\" rel=\"noopener noreferrer\"><em>UUID<\/em><\/a> and whose purpose is the association between request and response of the SOAP message;<\/li>\n<li>The SOAP message.<\/li>\n<\/ol>\n<p>The implementation of this JAX-WS Handler is complete and the next step will be the configuration whose application will hook the handler to our SOAP service.<\/p>\n<p>&nbsp;<\/p>\n<h2>3. Configuration of the JAX-WS Handler for the SOAP service<\/h2>\n<p style=\"text-align: justify;\">If we deployed the Audit Log Handler on our Liferay instance and tried to invoke the SOAP service (for example via <a href=\"https:\/\/www.soapui.org\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>SOAP UI<\/strong><\/a>), we would not get the expected result. <strong>For what reason?<\/strong><\/p>\n<p style=\"text-align: justify;\">The motivation is written at the beginning of the previous paragraph, the Liferay Extender must be informed about the JAX-WS Handlers that must be activated for the specific SOAP endpoint. <strong>How do you do this configuration operation?<\/strong><\/p>\n<p style=\"text-align: justify;\">The configuration can be performed through the control panel: <em>System Settings -&gt; Web API -&gt; SOAP Extenders<\/em>, from here access the affected endpoint and specify the filter <strong>(audit.log.jax.ws.handler.filters=true)<\/strong> to internal JAX-WS Handler Filters configuration. The following figures will make the idea better.<\/p>\n<p style=\"text-align: justify;\">The affected endpoint, in this case <em>\/custom-user<\/em>, corresponds to the SOAP <a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/blob\/master\/modules\/jaxws-service\/custom-users-ws\/src\/main\/java\/it\/dontesta\/labs\/liferay\/webservice\/customusers\/service\/ws\/CustomUserServiceWSEndPoint.java\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Custom User Service WS<\/strong><\/a> service whose implementation is available within the <a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/tree\/master\/modules\/jaxws-service\/custom-users-ws\" target=\"_blank\" rel=\"noopener noreferrer\">custom-users-ws<\/a> module.<\/p>\n<p style=\"text-align: justify;\">Before proceeding with the configuration you should make sure that the following modules (which I remember are available on the GitHub <a href=\"http:\/\/bit.ly\/2kH48cw\" target=\"_blank\" rel=\"noopener noreferrer\">liferay-72-soap-client-examples<\/a> repository) have been installed:<\/p>\n<ol>\n<li>Custom Users API<\/li>\n<li>Custom Users Service Implementation<\/li>\n<li>Custom Users Service JAX-WS API End Point<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4457\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_1.png\"><img aria-describedby=\"caption-attachment-4457\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-4457 size-large\" title=\"Figure 1 - SOAP Extender configuration\" src=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_1-1024x284.png\" alt=\"Figure 1 - SOAP Extender configuration \" width=\"1024\" height=\"284\" srcset=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_1-1024x284.png 1024w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_1-300x83.png 300w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_1-768x213.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-4457\" class=\"wp-caption-text\">Figure 1 - SOAP Extender configuration<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4458\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_2.png\"><img aria-describedby=\"caption-attachment-4458\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-4458 size-large\" title=\"Figure 2 - Configuration of the JAX-WS Handler (Audit Log Handler)\" src=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_2-1024x621.png\" alt=\"Figure 2 - Configuration of the JAX-WS Handler (Audit Log Handler)\" width=\"1024\" height=\"621\" srcset=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_2-1024x621.png 1024w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_2-300x182.png 300w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ConfigurationJAXWS_Handler_SOAPExtender_2-768x466.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-4458\" class=\"wp-caption-text\">Figure 2 - Configuration of the JAX-WS Handler (Audit Log Handler)<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><strong>A small note<\/strong>. The <a href=\"https:\/\/github.com\/amusarra\/liferay-72-soap-client-examples\/tree\/master\/modules\/jaxws-service\/custom-users-ws\" target=\"_blank\" rel=\"noopener noreferrer\">custom-users-ws<\/a> module containing the SOAP service subjected to the audit was set up for automatic configuration but at the moment does not seem to work with Liferay 7.2 GA1 (see <a href=\"https:\/\/issues.liferay.com\/browse\/LPS-101642\" target=\"_blank\" rel=\"noopener noreferrer\">LPS-101642<\/a>). This is why we must proceed with manual configuration.<\/p>\n<p>&nbsp;<\/p>\n<h2>4. How to test the JAX-WS Handler Audit Log Handler<\/h2>\n<p style=\"text-align: justify;\">Before proceeding with the configuration you should make sure that the following modules (which I remember are available on the GitHub <a href=\"http:\/\/bit.ly\/2kH48cw\" target=\"_blank\" rel=\"noopener noreferrer\">liferay-72-soap-client-examples<\/a> repository) have been installed:<\/p>\n<ol>\n<li>Custom Users API<\/li>\n<li>Custom Users Service Implementation<\/li>\n<li>Custom Users Service JAX-WS API End Point<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">To verify the correct operation of the Audit Log Handler it is sufficient to call the SOAP <em>Custom User Service WS<\/em> service through the SOAP UI tool or other equivalent (such as <a href=\"https:\/\/curl.haxx.se\/\" target=\"_blank\" rel=\"noopener noreferrer\">cURL<\/a> or <a href=\"https:\/\/httpie.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">HTTPie<\/a>).<\/p>\n<p>The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Web_Services_Description_Language\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>WSDL<\/strong><\/a> document of the service can be reached at the following address http:\/\/[$FQDN|$HOSTNAME|$IP]:8080\/o\/custom-user\/CustomUserServiceWSEndPoint?wsdl but in most cases the address http:\/\/localhost:8080\/o\/custom-user\/CustomUserServiceWSEndPoint?wsdl should be valid for all local Liferay installations.<\/p>\n<p style=\"text-align: justify;\">The following two figures show two SOAP requests (of which one is a <strong><em>fault<\/em><\/strong>) of the <em>Custom User Service WS<\/em> service and in particular for the <strong>getUsersByTags()<\/strong> operation. This operation returns system users who have a specific tag.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4463\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseOK_2.png\"><img aria-describedby=\"caption-attachment-4463\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-4463 size-large\" title=\"Figure 3 - Response of the SOAP Service Custom User\" src=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseOK_2-1024x367.png\" alt=\"Figure 3 - Response of the SOAP Service Custom User\" width=\"1024\" height=\"367\" srcset=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseOK_2-1024x367.png 1024w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseOK_2-300x107.png 300w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseOK_2-768x275.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-4463\" class=\"wp-caption-text\">Figure 3 - Response of the SOAP Service Custom User<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4462\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseFault_1.png\"><img aria-describedby=\"caption-attachment-4462\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-4462\" src=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseFault_1-1024x354.png\" alt=\"Figure 4 - Response (fault) of the SOAP Service Custom User\" width=\"1024\" height=\"354\" srcset=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseFault_1-1024x354.png 1024w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseFault_1-300x104.png 300w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/CallCustomUserServiceWSResponseFault_1-768x266.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-4462\" class=\"wp-caption-text\">Figure 4 - Response (fault) of the SOAP Service Custom User<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Very good \ud83d\ude42 <strong>Has our JAX-WS Audit Log Handler component done its job?<\/strong> Let's connect to the Liferay database and make a query like the one shown below and that acts on the <strong>AUDIT_AUDITEVENT<\/strong> table.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"theme:solarized-dark toolbar:1 lang:pgsql decode:true\" title=\"Source Code 3 - Query sulla tabella di Audit\">select *\r\nfrom audit_auditevent\r\nwhere eventtype = 'SERVICE_SOAP_TRACE_EVENT'\r\norder by createdate asc, classpk<\/pre>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">The result of the query is shown in the following figure from which it is possible to note the two records for the two SOAP request and response messages <span style=\"text-decoration: underline;\">that are correlated through the value of the classPK attribute that represents the correlationId<\/span>.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4464\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ResultAuditQuery_1.png\"><img aria-describedby=\"caption-attachment-4464\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-4464 size-large\" title=\"Figure 5 - View of the audit data collected by the JAX-WS Handler\" src=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ResultAuditQuery_1-1024x563.png\" alt=\"Figure 5 - View of the audit data collected by the JAX-WS Handler\" width=\"1024\" height=\"563\" srcset=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ResultAuditQuery_1-1024x563.png 1024w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ResultAuditQuery_1-300x165.png 300w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ResultAuditQuery_1-768x422.png 768w, https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ResultAuditQuery_1.png 1728w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-4464\" class=\"wp-caption-text\">Figure 5 - View of the audit data collected by the JAX-WS Handler<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">The content of the <em>additionlInfo<\/em> attribute of the AUDIT_AUDITEVENT table is a JSON whose example content is shown below.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"theme:solarized-dark toolbar:1 lang:js decode:true\" title=\"Source Code 3 - JSON contenuto all'interno dell'attributo additionalInfo\">{\r\n\t\"inBoundMessage\": \"&lt;soapenv:Envelope xmlns:soapenv=\\\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\\\" xmlns:soap=\\\"soap\\\" xmlns:ws=\\\"http:\/\/ws.service.customusers.webservice.liferay.labs.dontesta.it\/\\\"&gt;\\n   &lt;soapenv:Header&gt;\\n      &lt;mac:MacAddress xmlns:mac=\\\"http:\/\/ws.service.customusers.webservice.liferay.labs.dontesta.it\/macaddress\/value\/\\\" soapenv:actor=\\\"http:\/\/schemas.xmlsoap.org\/soap\/actor\/next\\\"&gt;88:e9:fe:69:c6:88&lt;\\\/mac:MacAddress&gt;\\n   &lt;\\\/soapenv:Header&gt;\\n   &lt;soapenv:Body&gt;\\n      &lt;ws:getUsersByTag&gt;\\n         &lt;!--Optional:--&gt;\\n         &lt;arg0&gt;smc&lt;\\\/arg0&gt;\\n      &lt;\\\/ws:getUsersByTag&gt;\\n   &lt;\\\/soapenv:Body&gt;&lt;\\\/soapenv:Envelope&gt;\",\r\n\t\"auditEventCode\": \"SERVICE_SOAP_TRACE_INBOUND_EVENT_0000\",\r\n\t\"auditEventDescription\": \"Trace SOAP Inbound Message\",\r\n\t\"auditEventType\": \"SERVICE_SOAP_TRACE_EVENT\"\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">I would say that we could well say that the expected result was successfully achieved <span style=\"text-decoration: underline;\">using the tools that Liferay offers<\/span> \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n<h2>5. The bonus<\/h2>\n<p style=\"text-align: justify;\">At the beginning of the article I had written a bonus. <strong>What is it?<\/strong> I wanted to leave you an additional JAX-WS Handler that you could play with. You will find the code inside the repository. Good continuation and fun. Let me know your impressions \ud83d\ude09<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>With the previous article How to implement a SOAP client using JAX-WS Liferay infrastructure we were able to see how to build a SOAP client using the JAX-WS infrastructure that Liferay offers to developers.&#46;&#46;&#46;<\/p>\n","protected":false},"author":3,"featured_media":4468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15,577,39],"tags":[190,637,350,649,409],"class_list":["post-4448","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-liferay","category-security","category-web-services","tag-java","tag-liferay","tag-soap-api","tag-web-services","tag-web-services-framework"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework<\/title>\n<meta name=\"description\" content=\"Do you need to audit SOAP services developed on Liferay? I will explain you how to do it through JAX-WS Handler and the Liferay Audit Framework\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework\" \/>\n<meta property=\"og:description\" content=\"Do you need to audit SOAP services developed on Liferay? I will explain you how to do it through JAX-WS Handler and the Liferay Audit Framework\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Antonio Musarra&#039;s Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/antoniomusarrablog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/antoniomusarrablog\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-21T17:11:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-10T21:41:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"722\" \/>\n\t<meta property=\"og:image:height\" content=\"342\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Antonio Musarra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@antonio_musarra\" \/>\n<meta name=\"twitter:site\" content=\"@antonio_musarra\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Antonio Musarra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\"},\"author\":{\"name\":\"Antonio Musarra\",\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\"},\"headline\":\"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework\",\"datePublished\":\"2019-09-21T17:11:32+00:00\",\"dateModified\":\"2020-09-10T21:41:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\"},\"wordCount\":2577,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\"},\"image\":{\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png\",\"keywords\":[\"Java\",\"Liferay\",\"SOAP API\",\"Web Services\",\"Web Services Framework\"],\"articleSection\":[\"Liferay\",\"Security\",\"Web Services\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\",\"url\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\",\"name\":\"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework\",\"isPartOf\":{\"@id\":\"https:\/\/www.dontesta.it\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png\",\"datePublished\":\"2019-09-21T17:11:32+00:00\",\"dateModified\":\"2020-09-10T21:41:16+00:00\",\"description\":\"Do you need to audit SOAP services developed on Liferay? I will explain you how to do it through JAX-WS Handler and the Liferay Audit Framework\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage\",\"url\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png\",\"contentUrl\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png\",\"width\":722,\"height\":342,\"caption\":\"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dontesta.it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come abilitare un JAX-WS Handler per fare audit dei messaggi SOAP via Liferay Audit Framework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dontesta.it\/#website\",\"url\":\"https:\/\/www.dontesta.it\/\",\"name\":\"Antonio Musarra&#039;s Blog\",\"description\":\"The ideal solution for a problem\",\"publisher\":{\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dontesta.it\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\",\"name\":\"Antonio Musarra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png\",\"contentUrl\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png\",\"width\":512,\"height\":512,\"caption\":\"Antonio Musarra\"},\"logo\":{\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/\"},\"description\":\"I began my journey into the world of computing from an Olivetti M24 PC (http:\/\/it.wikipedia.org\/wiki\/Olivetti_M24) bought by my father for his work. Day after day, quickly taking control until \u2026 Now doing business consulting for projects in the enterprise application development using web-oriented technologies such as J2EE, Web Services, ESB, TIBCO, PHP.\",\"sameAs\":[\"https:\/\/www.dontesta.it\",\"https:\/\/www.facebook.com\/antoniomusarrablog\",\"https:\/\/www.linkedin.com\/in\/amusarra\/\",\"https:\/\/x.com\/antonio_musarra\",\"https:\/\/www.youtube.com\/channel\/UC5D3_EtVPbZYUhrUcEK_THA\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework","description":"Do you need to audit SOAP services developed on Liferay? I will explain you how to do it through JAX-WS Handler and the Liferay Audit Framework","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/","og_locale":"en_US","og_type":"article","og_title":"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework","og_description":"Do you need to audit SOAP services developed on Liferay? I will explain you how to do it through JAX-WS Handler and the Liferay Audit Framework","og_url":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/","og_site_name":"Antonio Musarra&#039;s Blog","article_publisher":"https:\/\/www.facebook.com\/antoniomusarrablog","article_author":"https:\/\/www.facebook.com\/antoniomusarrablog","article_published_time":"2019-09-21T17:11:32+00:00","article_modified_time":"2020-09-10T21:41:16+00:00","og_image":[{"width":722,"height":342,"url":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png","type":"image\/png"}],"author":"Antonio Musarra","twitter_card":"summary_large_image","twitter_creator":"@antonio_musarra","twitter_site":"@antonio_musarra","twitter_misc":{"Written by":"Antonio Musarra","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#article","isPartOf":{"@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/"},"author":{"name":"Antonio Musarra","@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24"},"headline":"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework","datePublished":"2019-09-21T17:11:32+00:00","dateModified":"2020-09-10T21:41:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/"},"wordCount":2577,"commentCount":0,"publisher":{"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24"},"image":{"@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png","keywords":["Java","Liferay","SOAP API","Web Services","Web Services Framework"],"articleSection":["Liferay","Security","Web Services"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/","url":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/","name":"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework","isPartOf":{"@id":"https:\/\/www.dontesta.it\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage"},"image":{"@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png","datePublished":"2019-09-21T17:11:32+00:00","dateModified":"2020-09-10T21:41:16+00:00","description":"Do you need to audit SOAP services developed on Liferay? I will explain you how to do it through JAX-WS Handler and the Liferay Audit Framework","breadcrumb":{"@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#primaryimage","url":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png","contentUrl":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2019\/09\/ComeAbilitareJAXWSHandlerAuditMessaggiSOAPLiferayAuditFramework_FeatureImage.png","width":722,"height":342,"caption":"How to enable a JAX-WS Handler to audit SOAP messages via the Liferay Audit Framework"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dontesta.it\/2019\/09\/21\/how-to-enable-jax-ws-handler-to-audit-soap-messages-via-liferay-audit-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dontesta.it\/"},{"@type":"ListItem","position":2,"name":"Come abilitare un JAX-WS Handler per fare audit dei messaggi SOAP via Liferay Audit Framework"}]},{"@type":"WebSite","@id":"https:\/\/www.dontesta.it\/#website","url":"https:\/\/www.dontesta.it\/","name":"Antonio Musarra&#039;s Blog","description":"The ideal solution for a problem","publisher":{"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dontesta.it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24","name":"Antonio Musarra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/","url":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png","contentUrl":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png","width":512,"height":512,"caption":"Antonio Musarra"},"logo":{"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/"},"description":"I began my journey into the world of computing from an Olivetti M24 PC (http:\/\/it.wikipedia.org\/wiki\/Olivetti_M24) bought by my father for his work. Day after day, quickly taking control until \u2026 Now doing business consulting for projects in the enterprise application development using web-oriented technologies such as J2EE, Web Services, ESB, TIBCO, PHP.","sameAs":["https:\/\/www.dontesta.it","https:\/\/www.facebook.com\/antoniomusarrablog","https:\/\/www.linkedin.com\/in\/amusarra\/","https:\/\/x.com\/antonio_musarra","https:\/\/www.youtube.com\/channel\/UC5D3_EtVPbZYUhrUcEK_THA\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/posts\/4448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/comments?post=4448"}],"version-history":[{"count":0,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/posts\/4448\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/media\/4468"}],"wp:attachment":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/media?parent=4448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/categories?post=4448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/tags?post=4448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}