Questions Tagged With cxfhttps://answers.axonivy.com/tags/cxf/?type=rssquestions tagged <span class="tag">cxf</span>enThu, 12 Mar 2020 01:45:20 -0400AXIS web service client calls LinkageError with Policyhttps://answers.axonivy.com/questions/4451/axis-web-service-client-calls-linkageerror-with-policy<p>Since Axon.ivy 8.0 you may have problems with AXIS web service client calls, which you will notice in the log as follows:</p> <pre><code>LinkageError: loader constraint violation: loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4797c3e2 wants to load class org.apache.neethi.Policy. A different class with the same name was previously loaded by org.eclipse.osgi.internal.loader.EquinoxClassLoader @59b5251d. (org.apache.neethi.Policy is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @59b5251d, parent loader 'platform') </code></pre> <p>This problem occurs in combination with web service policies. To fix this issue, you need to migrate to the CXF Web Service Client technology - the AXIS stack is deprecated.</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/1583991754-603005-image.png"></p> <p>We have invested heavily in the new CXF technology in the Web Service Call Stack . If you have any problems with CXF, please contact us. We will take our time and make the CXF stack even better 💪!</p>Alex SuterThu, 12 Mar 2020 01:45:20 -0400https://answers.axonivy.com/questions/4451/axis-web-service-client-calls-linkageerror-with-policywebservicecxfaxisCXF Web Service Client improvements in 8.0.3https://answers.axonivy.com/questions/4445/cxf-web-service-client-improvements-in-8-0-3<p>By default CXF Web Service Calls runs by default with <code>HttpUrlConnection</code> of Java. <code>HttpUrlConnection</code> is limited when it comes to authenticate against a NTML web service.</p> <p>CXF provides the ability to change the implementation of the connection itself to <code>org.apache.http.nio.client.HttpAsyncClient</code>. Besides the full support of NTML it also provides better performance. Due that fact we changed the default connection to <code>HttpAsyncClient</code> of CXF Web Service Calls.</p> <p>There are no known compatibility issues between these to implementations. If you face one, please contact us. And you are always still able to fallback by setting the <code>use.async.http.conduit</code> to <code>false</code> on the Web Service Client.</p>Alex SuterThu, 05 Mar 2020 02:33:11 -0500https://answers.axonivy.com/questions/4445/cxf-web-service-client-improvements-in-8-0-3webservicecxfApache CXF DateTime Converter with different Timezonehttps://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone<p>We have a simple WSDL which holds a datetime attribute. This attribute is converted correctly by the CXF library and holds the Ivy DateTime format in the generated ws class. When we pass a datetime into the ws call, the datetime is formatted as <code>2018-11-26T12:56:52+01:00</code> but the ws provider (in our case SAP) needs the datetime within the UTC timezone, like: <code>2018-11-26T12:56:52Z</code></p> <p>How can we change the format? Is there a simple way, for example to pass the timezone to the Ivy DateTime object? ...or pass a SimpleDateFormat object for the string formatting?</p>Adrian ImfeldMon, 26 Nov 2018 09:32:33 -0500https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezonewebservicecxfHow to use WS-Addressing in a webservice call?https://answers.axonivy.com/questions/3106/how-to-use-ws-addressing-in-a-webservice-call<p>I need to use web service standard WS-Addressing to call a web service. How can I use it?</p>Alex SuterWed, 21 Feb 2018 10:36:38 -0500https://answers.axonivy.com/questions/3106/how-to-use-ws-addressing-in-a-webservice-callwebservicecxfsoap