Questions Tagged With xmlhttps://answers.axonivy.com/tags/xml/?type=rssquestions tagged <span class="tag">xml</span>enThu, 03 Jan 2019 05:05:38 -0500Log Mail with Log4J SMTP Appender doesn't workhttps://answers.axonivy.com/questions/3601/log-mail-with-log4j-smtp-appender-doesn-t-work<p>Hello, i want Axon Ivy to send an Email when there is an error so i added this code to "log4jconfig.xml":</p> <pre><code>&lt; appender name="EmailAppender" class="org.apache.log4j.net.SMTPAppender"&gt; &lt; param name="BufferSize" value="512" / &gt; &lt; param name="SMTPHost" value="smtp.gmail.com" / &gt; &lt; param name="SMTPProtocol" value="smtps" / &gt; &lt; param name="SMTPPort" value="465" / &gt; &lt; param name="SMTPUsername" value=" *** " / &gt; &lt; param name="SMTPPassword" value=" *** " / &gt; &lt; param name="From" value=" *** " / &gt; &lt; param name="To" value=" *** " / &gt; &lt; param name="Subject" value="Testing Log4j Mail Notification" / &gt; &lt; layout class="org.apache.log4j.PatternLayout"&gt; &lt; param name="ConversionPattern" value="%-7p %d [%t] %c %x - %m%n" / &gt; &lt; /layout &gt; &lt; /appender &gt; &lt; root &gt; &lt; level value ="WARN" / &gt; &lt; appender-ref ref="FileLog"/ &gt; &lt; appender-ref ref="EmailAppender"/ &gt; &lt; appender-ref ref="ConsoleAppender"/ &gt; &lt; /root &gt; </code></pre> <p>The FileLog works but i dont receive the email. When i change the order to this:</p> <pre><code>&lt; appender-ref ref="EmailAppender"/ &gt; &lt; appender-ref ref="FileLog"/ &gt; </code></pre> <p>then the FileLog and the MailAppender doesn't work. <br> When i use the same code in an Eclipse Java Project it works and i get the email. </p> <p>What should i do?</p> <p>Edit: Do i have to add mail.jar and activation.jar to my build path in Axon Ivy? In Eclipse i added them to lib and it worked but i don't know how to integrate them to Axon Ivy.</p> <p>Edit2: With Log4j debug=true i get this Error in my logfile: <br> 2019-01-22 16:21:32.230 ERROR [ch.ivyteam.log.LoggerFactory] [main] [] Log4j: Could not configure java.lang.NoClassDefFoundError: javax/mail/internet/AddressException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:247) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176) <br> ...</p>karstenkThu, 03 Jan 2019 05:05:38 -0500https://answers.axonivy.com/questions/3601/log-mail-with-log4j-smtp-appender-doesn-t-workxmlloggingemaillog4jSpecial character / Umlaut in XML with ch.ivyteam.ivy.scripting.objects.Xmlhttps://answers.axonivy.com/questions/2366/special-character-umlaut-in-xml-with-ch-ivyteam-ivy-scripting-objects-xml<p>When i do for example:</p> <pre><code>Xml field = new Xml("Field", "KOSTENTR&amp;#196;GER"); // Ä </code></pre> <p>"&amp;" is converted to "&amp; amp;", when i convert the xml object to string. </p> <p>It's look for example like this:</p> <pre><code>&lt;FIELD&gt;KOSTENTR&amp;amp;#196;GER&lt;/FIELD&gt; </code></pre> <p>How can i avoid this?</p>tiagoTue, 10 Jan 2017 12:42:41 -0500https://answers.axonivy.com/questions/2366/special-character-umlaut-in-xml-with-ch-ivyteam-ivy-scripting-objects-xmlxmlhow can I programmtically import or export processes in ivy designer into xml files?https://answers.axonivy.com/questions/727/how-can-i-programmtically-import-or-export-processes-in-ivy-designer-into-xml-files<p>Is it possible, to programmtically import or export processes in ivy designer into xml files, e.g. BPMN2.xml? Addtionally, i also wanna add an option in export and import dialog of designer, how shall i change ivy plugins?</p> <p>thansk ahead!</p>xwa_muenchenMon, 02 Jun 2014 11:39:34 -0400https://answers.axonivy.com/questions/727/how-can-i-programmtically-import-or-export-processes-in-ivy-designer-into-xml-filesxmldesignerXMLStreamException while calling a SOAP webservicehttps://answers.axonivy.com/questions/172/xmlstreamexception-while-calling-a-soap-webservice<pre><code>I want to use a webservice, which I created in Inubit. The WSDL URL is [http://venus.zhaw.ch:8000/ibis/ws/Betreibungsregisterauszug_ws_Listener?wsdl][1]. When I test the service in [soapUI][2] everything works fine (see picture). </code></pre> <p><img alt="alt text" src="/upfiles/picture1.png"></p> <pre><code>When I test the service in Xpert.ivy Designer 5.1.0 S6, I get the error javax.xml.stream.XMLStreamException: element text content may not contain START_ELEMENT. What could be the reason for this error? </code></pre> <p><img alt="alt text" src="/upfiles/picture2.png"></p> <p><img alt="alt text" src="/upfiles/picture3.png"></p> <pre><code>Here is the XML Request in soapUI: POST http://venus.zhaw.ch:8000/ibis/ws/Betreibungsregisterauszug_ws_Listener HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "BetreibungsregisterauszugErhalten" Content-Length: 352 Host: venus.zhaw.ch:8000 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bet="https://venus.zhaw.ch:8443/ibis/ws/1383213506125/Betreibungsregisterauszug_ws_Listener"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;bet:BetreibungsregisterauszugErhalten&gt;CH450234&lt;/bet:BetreibungsregisterauszugErhalten&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <ul> <li><a href="http://youtu.be/HhWzQLEylII?hd=1">Link to screencast explaining the problem (german only)</a></li> <li><a href="http://youtu.be/uKkJFXZ98P0?hd=1">Link to 2nd screencast with new findings</a></li> <li><a href="https://www.dropbox.com/s/6zxd079rdh8ih3p/TEMPTestWebservice.iar">Link to Xpert.ivy project (iar-file)</a></li> </ul>BjörnFri, 06 Dec 2013 14:03:36 -0500https://answers.axonivy.com/questions/172/xmlstreamexception-while-calling-a-soap-webservicexmlwebserviceHow to parse a String to ivy xml-object?https://answers.axonivy.com/questions/31/how-to-parse-a-string-to-ivy-xml-object<p>I receive a string from an external java class which is an xml-file. How can I parse this to an ivy-xml object? (Xpert.ivy 4.3)</p>Nikel WeisFri, 18 Oct 2013 11:25:41 -0400https://answers.axonivy.com/questions/31/how-to-parse-a-string-to-ivy-xml-objectxml