<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anilmekala on Medium]]></title>
        <description><![CDATA[Stories by Anilmekala on Medium]]></description>
        <link>https://medium.com/@anilmekala?source=rss-62345d6f38b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tnJBd6liyjtHKi8_</url>
            <title>Stories by Anilmekala on Medium</title>
            <link>https://medium.com/@anilmekala?source=rss-62345d6f38b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:14:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anilmekala/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Java Compute Node to Unzip multiple files IBM ACE 12]]></title>
            <link>https://medium.com/@anilmekala/java-compute-node-to-unzip-multiple-files-ibm-ace-12-159612c949ef?source=rss-62345d6f38b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/159612c949ef</guid>
            <dc:creator><![CDATA[Anilmekala]]></dc:creator>
            <pubDate>Fri, 12 Sep 2025 02:59:09 GMT</pubDate>
            <atom:updated>2025-09-12T02:59:09.294Z</atom:updated>
            <content:encoded><![CDATA[<p>This demo will help you to understand unzip multiples in a directory using ACE toolkit, search for csv files within the directory and send them to another destination directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DI7knFF7qQvWVJqfsijUIQ.png" /></figure><p>FileInput Node will read the Test_CSV.zip from the directory C:\MY_FILES\FileInput</p><p>Zip file contains the below files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IqH8Vuct-2QlIqZ6PgGDBg.png" /></figure><p>Java compute node will read the zip file and unzip the each csv file into destination directory.</p><p>JCN code :</p><p><strong>import</strong> java.io.ByteArrayInputStream;</p><p><strong>import</strong> java.io.ByteArrayOutputStream;</p><p><strong>import</strong> java.io.IOException;</p><p><strong>import</strong> java.util.zip.ZipEntry;</p><p><strong>import</strong> java.util.zip.ZipInputStream;</p><p><strong>import</strong> com.ibm.broker.javacompute.MbJavaComputeNode;</p><p><strong>import</strong> com.ibm.broker.plugin.MbBLOB;</p><p><strong>import</strong> com.ibm.broker.plugin.MbElement;</p><p><strong>import</strong> com.ibm.broker.plugin.MbException;</p><p><strong>import</strong> com.ibm.broker.plugin.MbMessage;</p><p><strong>import</strong> com.ibm.broker.plugin.MbMessageAssembly;</p><p><strong>import</strong> com.ibm.broker.plugin.MbUserException;</p><p><strong>public</strong> <strong>class</strong> ZipCsvExtractorJCN_JavaCompute <strong>extends</strong> MbJavaComputeNode {</p><p><strong>public</strong> <strong>void</strong> evaluate(MbMessageAssembly inAssembly) <strong>throws</strong> MbException {</p><p>MbMessage inMessage = inAssembly.getMessage();</p><p><strong>try</strong> {</p><p>MbMessage outMessage = <strong>new</strong> MbMessage();</p><p>MbMessageAssembly outAssembly = <strong>new</strong> MbMessageAssembly(inAssembly, outMessage);</p><p>copyMessageHeaders(inMessage, outMessage);</p><p>// 1. Extract BLOB from input message</p><p>MbElement blobElement = inMessage.getRootElement().getLastChild().getFirstElementByPath(“BLOB”);</p><p><strong>byte</strong>[] zipBytes = (<strong>byte</strong>[]) blobElement.getValue();</p><p>// 2. Create ByteArrayInputStream and ZipInputStream</p><p>ByteArrayInputStream byteArrayInputStream = <strong>new</strong> ByteArrayInputStream(zipBytes);</p><p>ZipInputStream zipInputStream = <strong>new</strong> ZipInputStream(byteArrayInputStream);</p><p>ZipEntry entry;</p><p>// 3. Loop through entries in the ZIP</p><p><strong>while</strong> ((entry = zipInputStream.getNextEntry()) != <strong>null</strong>) {</p><p>String entryName = entry.getName();</p><p>// 3.2. If the entry is a CSV file</p><p><strong>if</strong> (entryName != <strong>null</strong> &amp;&amp; entryName.toLowerCase().endsWith(“.csv”)) {</p><p>// 3.2.1. Create ByteArrayOutputStream and buffer</p><p>ByteArrayOutputStream byteArrayOutputStream = <strong>new</strong> ByteArrayOutputStream();</p><p><strong>byte</strong>[] buffer = <strong>new</strong> <strong>byte</strong>[4096];</p><p><strong>int</strong> bytesRead;</p><p>// 3.2.2. Loop to read from ZipInputStream into buffer</p><p><strong>while</strong> ((bytesRead = zipInputStream.read(buffer)) != -1) {</p><p>// 3.2.2.2. Write to ByteArrayOutputStream</p><p>byteArrayOutputStream.write(buffer, 0, bytesRead);</p><p>}</p><p>// 3.2.3. Get CSV content as byte array</p><p><strong>byte</strong>[] csvBytes = byteArrayOutputStream.toByteArray();</p><p>// 3.2.4. Create OutputRoot for BLOB</p><p>MbElement outRoot = outMessage.getRootElement();</p><p>// Create BLOB parser and set CSV content</p><p>MbElement blobRoot = outRoot.createElementAsLastChild(MbBLOB.<strong><em>PARSER_NAME</em></strong>);</p><p>blobRoot.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME_VALUE</em></strong>, “BLOB”, csvBytes);</p><p>// 3.2.5. Propagate</p><p>MbMessage localEnv = outAssembly.getLocalEnvironment();</p><p>MbElement root = localEnv.getRootElement();</p><p>MbElement fileElem = root.getFirstElementByPath(“Destination/File”);</p><p><strong>if</strong>(fileElem == <strong>null</strong>) {</p><p>MbElement destElem = root.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME</em></strong>, “Destination”, <strong>null</strong>);</p><p>fileElem = destElem.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME</em></strong>, “File”, <strong>null</strong>);</p><p>}</p><p>MbElement prevNameElem = fileElem.getFirstElementByPath(“Name”);</p><p><strong>if</strong>(prevNameElem != <strong>null</strong>) {</p><p>prevNameElem.detach();</p><p>}</p><p>fileElem.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME_VALUE</em></strong>, “Name”, entryName);</p><p>fileElem.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME_VALUE</em></strong>, “Directory”, “C:\\MY_FILES\\FileOutput”);</p><p>fileElem.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME_VALUE</em></strong>, “Action”, “create”);</p><p>fileElem.createElementAsLastChild(MbElement.<strong><em>TYPE_NAME_VALUE</em></strong>, “CreateMissingDirectories”, “true”);</p><p>getOutputTerminal(“out”).propagate(outAssembly);</p><p>// Close output stream</p><p>byteArrayOutputStream.close();</p><p>}</p><p>// 3.3. Close current zip entry</p><p>zipInputStream.closeEntry();</p><p>Thread.<em>sleep</em>(300);</p><p>}</p><p>// 3.5. Close streams</p><p>zipInputStream.close();</p><p>byteArrayInputStream.close();</p><p>}<strong>catch</strong> (IOException e) {</p><p><strong>throw</strong> <strong>new</strong> MbUserException(<strong>this</strong>, “evaluate()”, “”, “”, “IOException occurred: “ + e.getMessage(), <strong>null</strong>);</p><p>}</p><p><strong>catch</strong> (MbException e) {</p><p>// Re-throw to allow Broker handling of MbException</p><p><strong>throw</strong> e;</p><p>} <strong>catch</strong> (RuntimeException e) {</p><p>// Re-throw to allow Broker handling of RuntimeException</p><p><strong>throw</strong> e;</p><p>} <strong>catch</strong> (Exception e) {</p><p>// Consider replacing Exception with type(s) thrown by user code</p><p>// Example handling ensures all exceptions are re-thrown to be handled in the flow</p><p><strong>throw</strong> <strong>new</strong> MbUserException(<strong>this</strong>, “evaluate()”, “”, “”, e.toString(), <strong>null</strong>);</p><p>}</p><p>}</p><p><strong>public</strong> <strong>void</strong> copyMessageHeaders(MbMessage inMessage, MbMessage outMessage) <strong>throws</strong> MbException {</p><p>MbElement outRoot = outMessage.getRootElement();</p><p>// iterate though the headers starting with the first child of the root</p><p>// element, stopping before the last child (body)</p><p>MbElement header = inMessage.getRootElement().getFirstChild();</p><p><strong>while</strong> (header != <strong>null</strong> &amp;&amp; header.getNextSibling() != <strong>null</strong>) {</p><p>// copy the header and add it to the out message</p><p>MbElement newHeader = outRoot.createElementAsLastChild(header.getParserClassName());</p><p>newHeader.setName(header.getName());</p><p>newHeader.copyElementTree(header);</p><p>// move along to next header</p><p>header = header.getNextSibling();</p><p>}</p><p>}</p><p>/**</p><p>* onPreSetupValidation() is called during the construction of the node</p><p>* to allow the node configuration to be validated. Updating the node</p><p>* configuration or connecting to external resources should be avoided.</p><p>*</p><p>* <strong>@throws</strong> MbException</p><p>*/</p><p>@Override</p><p><strong>public</strong> <strong>void</strong> onPreSetupValidation() <strong>throws</strong> MbException {</p><p>}</p><p>/**</p><p>* onSetup() is called during the start of the message flow allowing</p><p>* configuration to be read/cached, and endpoints to be registered.</p><p>*</p><p>* Calling getPolicy() within this method to retrieve a policy links this</p><p>* node to the policy. If the policy is subsequently redeployed the message</p><p>* flow will be torn down and reinitialized to it’s state prior to the policy</p><p>* redeploy.</p><p>*</p><p>* <strong>@throws</strong> MbException</p><p>*/</p><p>@Override</p><p><strong>public</strong> <strong>void</strong> onSetup() <strong>throws</strong> MbException {</p><p>}</p><p>/**</p><p>* onStart() is called as the message flow is started. The thread pool for</p><p>* the message flow is running when this method is invoked.</p><p>*</p><p>* <strong>@throws</strong> MbException</p><p>*/</p><p>@Override</p><p><strong>public</strong> <strong>void</strong> onStart() <strong>throws</strong> MbException {</p><p>}</p><p>/**</p><p>* onStop() is called as the message flow is stopped.</p><p>*</p><p>* The onStop method is called twice as a message flow is stopped. Initially</p><p>* with a ‘wait’ value of false and subsequently with a ‘wait’ value of true.</p><p>* Blocking operations should be avoided during the initial call. All thread</p><p>* pools and external connections should be stopped by the completion of the</p><p>* second call.</p><p>*</p><p>* <strong>@throws</strong> MbException</p><p>*/</p><p>@Override</p><p><strong>public</strong> <strong>void</strong> onStop(<strong>boolean</strong> wait) <strong>throws</strong> MbException {</p><p>}</p><p>/**</p><p>* onTearDown() is called to allow any cached data to be released and any</p><p>* endpoints to be deregistered.</p><p>*</p><p>* <strong>@throws</strong> MbException</p><p>*/</p><p>@Override</p><p><strong>public</strong> <strong>void</strong> onTearDown() <strong>throws</strong> MbException {</p><p>}</p><p>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8nozqNHz1Q7Vyv58Nl_7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jt96b8qGbZMuupohbzVi9g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=159612c949ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using HTTPS and certificates in IBM ACE 12]]></title>
            <link>https://medium.com/@anilmekala/using-https-and-certificates-in-ibm-ace-12-2e6478b30dd7?source=rss-62345d6f38b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e6478b30dd7</guid>
            <dc:creator><![CDATA[Anilmekala]]></dc:creator>
            <pubDate>Sun, 10 Nov 2024 03:22:33 GMT</pubDate>
            <atom:updated>2024-11-10T03:22:33.904Z</atom:updated>
            <content:encoded><![CDATA[<p>This demonstration will help you understand to create certificate, public key and private key.</p><h3>Generate necessary certificates</h3><p>Sometimes you may want to create your own certificate authority (CA) for demonstration purposes or for simulation purposes. A certificate authority (CA), also sometimes referred to as a certification authority, is a company or organization that acts to validate the identities of entities (such as websites, email addresses, companies, or individual persons) and bind them to cryptographic keys through the issuance of electronic documents known as digital certificates.</p><p>I am using the freely available <a href="https://www.openssl.org/">openssl tool </a>for this purpose.</p><h3>Create the CA private key:</h3><p>openssl genrsa -des3 -out CAPrivate.key 2048 — you need to choose password 4 chars minimum</p><h3>Generate the root certificate:</h3><p>openssl req -x509 -new -nodes -key CAPrivate.key -sha256 -days 3650 -out CAPrivate.pem -subj “/CN=my_certificate_authority/C=BR/ST=your_state/L=your_locality/O=your_organization/OU=your_organization_unit”</p><h3>Generate the CSR (certificate request):</h3><p>openssl genrsa -out MyPrivate.key 2048</p><p>openssl req -new -key MyPrivate.key -out MyRequest.csr -subj “/CN=my_certificate/C=BR/ST=your_state/L=your_locality/O=your_organization/OU=your_organization_unit”8</p><h3>Generate the Certificate using the CSR:</h3><p>openssl x509 -req -in MyRequest.csr -CA CAPrivate.pem -CAkey CAPrivate.key -CAcreateserial -out MyCertificate.crt -days 3650 -sha256</p><h3>Merge private key and certificate into pfx:</h3><p>openssl pkcs12 -export -out MyCertificate.pfx -inkey MyPrivate.key -in MyCertificate.crt</p><h3>Preparing keystore and truststore</h3><h3>Create keystore.jks</h3><p>keytool -importkeystore -srckeystore MyCertificate.pfx -destkeystore keystore.jks -srcstoretype pkcs12</p><ul><li>you will be prompted for password into MyCertificate.pfx as well as new password for keystore.jks. My suggestion is to keep the same password from the first step.</li></ul><h3>Create truststore.jks</h3><p>keytool -import -file CAPrivate.pem -alias ROOTCA -keystore truststore.jks -storetype jks</p><h3>Verify certifiactes in your keystore and truststore:</h3><p>keytool -keystore truststore.jks -list -storepass {your password} -v<br>keytool -keystore keystore.jks -list -storepass {your password} -v</p><p>mqsisetdbparms -w C:\Users\anilm\IBM\ACET12\workspace\TEST_CLIENT -n client::keystorePass -u notused -p &lt;yourpassword&gt;</p><p>mqsisetdbparms -w C:\Users\anilm\IBM\ACET12\workspace\TEST_SERVER -n server::keystorePass -u notused -p &lt;yourpassword&gt;</p><h3>Creating your local Integration Servers</h3><p>I have created local integration server ‘TEST_SERVER’ from toolkit and updated server.conf.yaml as below</p><p>ResourceManagers:<br> JVM:<br> #jvmVerboseOption: ‘none’<br> #jvmDisableClassGC: ‘’<br> #jvmEnableIncGC: ‘’<br> #jvmShareClasses: ‘’<br> #jvmNativeStackSize: -1<br> #jvmJavaOSStackSize: -1<br> #jvmMinHeapSize: 33554432 # minimum JVM heap size in bytes (32MB)<br> #jvmMaxHeapSize: 268435456 # maximum JVM heap size in bytes (256MB)<br> #jvmDebugPort: 0 # Set non-zero to activate JVM debug port for Toolkit debugging<br> #jvmSystemProperty: ‘’<br> keystoreType: ‘JKS’ # JVM key store type, can be ‘JKS’ or ‘PKCS12’.<br> keystoreFile: C:\Temp\clientkeystore.jks # JVM location of the key store<br> keystorePass: ‘client::keystore’ # JVM resource alias containing the key store password<br> truststoreType: ‘JKS’ # JVM trust store type, can be ‘JKS’ or ‘PKCS12’.<br> truststoreFile: C:\Temp\servertruststore.jks # JVM location of the trust store<br> truststorePass: ‘server::truststore’ # JVM resource alias containing the trust store password<br> #crlFileList: ‘’<br> #enableCRLDP: ‘’<br> #kerberosConfigFile: ‘’<br> #kerberosKeytabFile: ‘’<br> #networkaddressCacheTtl: 60 # Default DNS cache timeout, applied to both networkaddress.cache.ttl and<br> # sun.net.inetaddr.ttl unless either are already set.<br> # The HTTP and HTTPS connectors don’t inherit, so if you need a property set<br> # for both then add it to both.</p><p>HTTPSConnector:<br> ListenerPort: 7843 # Set non-zero to set a specific port, defaults to 7843<br> #ListenerAddress: ‘0.0.0.0’ # Set the IP address for the listener to listen on. Default is to listen on all addresses<br> ReqClientAuth: true # Controls whether to request for client certificate during tls handshake.<br> #RejectUnauthorizedClient: true # Controls whether to allow connection without client certificate when ReqClientAuth is set.<br> #KeyAlias: ‘’<br> #KeyPassword: ‘P4s5w0rd’ # Set the password or alias to the password of the key<br> KeystoreFile: C:/Temp/clientkeystore.jks<br> KeystorePassword: ‘client::keystore’ # Set the password or alias to the password of the keystore<br> KeystoreType: ‘JKS’ # Set the key store type, can be ‘JKS’ or ‘PKCS12’. Default is JKS.<br> TruststoreFile: C:/Temp/servertruststore.jks<br> TruststorePassword: ‘server::truststore’ # Set the password or alias to the password of the keystore<br> TruststoreType: ‘JKS’</p><p>→ Creating client integration server ‘TEST_CLIENT’ from toolkit and updated server.conf.yaml as below</p><p>ResourceManagers:<br> JVM:<br> #jvmVerboseOption: ‘none’<br> #jvmDisableClassGC: ‘’<br> #jvmEnableIncGC: ‘’<br> #jvmShareClasses: ‘’<br> #jvmNativeStackSize: -1<br> #jvmJavaOSStackSize: -1<br> #jvmMinHeapSize: 33554432 # minimum JVM heap size in bytes (32MB)<br> #jvmMaxHeapSize: 268435456 # maximum JVM heap size in bytes (256MB)<br> #jvmDebugPort: 0 # Set non-zero to activate JVM debug port for Toolkit debugging<br> #jvmSystemProperty: ‘’<br> keystoreType: ‘JKS’ # JVM key store type, can be ‘JKS’ or ‘PKCS12’.<br> keystoreFile: C:\Temp\clientkeystore.jks # JVM location of the key store<br> keystorePass: ‘client::keystore’ # JVM resource alias containing the key store password<br> truststoreType: ‘JKS’ # JVM trust store type, can be ‘JKS’ or ‘PKCS12’.<br> truststoreFile: C:\Temp\servertruststore.jks # JVM location of the trust store<br> truststorePass: ‘server::truststore’</p><p>The following example, I have created two applications.</p><ol><li>APP_HTTPS_TEST : This flow will act as server</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpMrU9YH2fFHTKx-QlpyyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTEk15m_Fi9yPeDAs4lV9A.png" /></figure><p>Deploy the above application in TEST_SERVER Integration server</p><ol><li>APP_Client_TEST : This flow will act as client.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TjTzLtaiRuuy-18EXC3Wdw.png" /></figure><p>TEST the flow from SOAP UI</p><p>Add trustore.jks in SSL settings as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bppRPOMM_XhJwAKt1Xu_3Q.png" /></figure><p>Test server flow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PDGxNRp4IhT61zfsnsyxg.png" /></figure><p>Test from client flow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KaeerHx-ZhzQ2hOkf2k-tA.png" /></figure><p>Please let me know if you have any questions .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e6478b30dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Usage of ASBITSTREAM function in ESQL IBM ACE12]]></title>
            <link>https://medium.com/@anilmekala/usage-of-asbitstream-function-in-esql-ibm-ace12-e62c59d42634?source=rss-62345d6f38b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e62c59d42634</guid>
            <dc:creator><![CDATA[Anilmekala]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 03:59:58 GMT</pubDate>
            <atom:updated>2023-11-25T03:59:58.148Z</atom:updated>
            <content:encoded><![CDATA[<p>Usage of ASBITSTREAM function in ESQL IBM ACE12</p><p>Introduction</p><p>This example will help you to understand ASBITSTREAM function in ESQL IBM ACE12.</p><p>As part of my regular integration solution development , I have got requirement to remove namespace in the source xml before sending the target system.</p><p>Sample Input xml :</p><p>&lt;table xmlns:h=”<a href="http://www.w3.org/TR/html4/">http://www.w3.org/TR/html4/</a>&quot;&gt;<br> &lt;tr&gt;<br> &lt;td&gt;Apples&lt;/td&gt;<br> &lt;td&gt;Bananas&lt;/td&gt;<br> &lt;/tr&gt;<br>&lt;/table&gt;</p><p>Sample Message flow :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*F_b1EJJ5Mij5Z4EQVuINdg.png" /></figure><p>ESQL code :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*1gyX86l4nsKj-94diFaziw.png" /></figure><p>Above esql I have read the input xml message and converted into stream message. Then by using replace function replace the occurrence of source string with expected string.</p><p>Sample output XML :</p><p>&lt;table &gt;<br> &lt;tr&gt;<br> &lt;td&gt;Apples&lt;/td&gt;<br> &lt;td&gt;Bananas&lt;/td&gt;<br> &lt;/tr&gt;<br>&lt;/table&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e62c59d42634" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transform XML array object to JSON array object using ESQL in IBM ACE 12]]></title>
            <link>https://medium.com/@anilmekala/transform-xml-array-object-to-json-array-object-using-esql-in-ibm-ace-12-ec3c9cc3b1f6?source=rss-62345d6f38b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec3c9cc3b1f6</guid>
            <dc:creator><![CDATA[Anilmekala]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 02:58:05 GMT</pubDate>
            <atom:updated>2023-11-24T03:15:30.645Z</atom:updated>
            <content:encoded><![CDATA[<p>The demo will help you to understand transforming XML array object to JSON array using ESQL .</p><p>steps to create application:</p><p>File → New →Application →APP_XMLTOJSONTransform</p><p>Create message flow :</p><p>MFL_XMLTOJSON_TransformArray.msgflow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJ5J4R6JrDJhnIfrYnFW1Q.png" /></figure><p>Update Http Input node attributes as below</p><p>path suffix for URL and Message domain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7j1KpIlGAqe9nomS4SEug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hC7-eDT7bASckEot7w9enA.png" /></figure><p>ESQL code :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YyFtHAj8p2ELlV6HfbIONw.png" /></figure><p>Sample Input message :</p><p>&lt;EmployeeArr&gt;<br>&lt;Employee&gt;<br> &lt;Employee_Id&gt;101&lt;/Employee_Id&gt;&lt;Employee_Fname&gt;AAA&lt;/Employee_Fname&gt;&lt;Employee_Lname&gt;BBB&lt;/Employee_Lname&gt;<br>&lt;/Employee&gt;<br>&lt;Employee&gt;<br> &lt;Employee_Id&gt;102&lt;/Employee_Id&gt;&lt;Employee_Fname&gt;BBB&lt;/Employee_Fname&gt;&lt;Employee_Lname&gt;BBB&lt;/Employee_Lname&gt;<br>&lt;/Employee&gt;<br>&lt;Employee&gt;<br>&lt;Employee_Id&gt;103&lt;/Employee_Id&gt;&lt;Employee_Fname&gt;CCC&lt;/Employee_Fname&gt;&lt;Employee_Lname&gt;BBB&lt;/Employee_Lname&gt;<br>&lt;/Employee&gt;<br>&lt;Employee&gt;<br>&lt;Employee_Id&gt;104&lt;/Employee_Id&gt;&lt;Employee_Fname&gt;DDD&lt;/Employee_Fname&gt;&lt;Employee_Lname&gt;BBB&lt;/Employee_Lname&gt;<br>&lt;/Employee&gt;<br>&lt;Employee&gt;<br>&lt;Employee_Id&gt;105&lt;/Employee_Id&gt;&lt;Employee_Fname&gt;EEE&lt;/Employee_Fname&gt;&lt;Employee_Lname&gt;BBB&lt;/Employee_Lname&gt;<br>&lt;/Employee&gt;<br>&lt;/EmployeeArr&gt;</p><p>Sample Output Message :</p><p>{“EmployeeArr”: {“Employee”: [<br> {<br> “Employee_Id”: “101”,<br> “Employee_Fname”: “AAA”,<br> “Employee_Lname”: “BBB”<br> },<br> {<br> “Employee_Id”: “102”,<br> “Employee_Fname”: “BBB”,<br> “Employee_Lname”: “BBB”<br> },<br> {<br> “Employee_Id”: “103”,<br> “Employee_Fname”: “CCC”,<br> “Employee_Lname”: “BBB”<br> },<br> {<br> “Employee_Id”: “104”,<br> “Employee_Fname”: “DDD”,<br> “Employee_Lname”: “BBB”<br> },<br> {<br> “Employee_Id”: “105”,<br> “Employee_Fname”: “EEE”,<br> “Employee_Lname”: “BBB”<br> }<br>]}}</p><p>This poc will help you understand to create json object and json array of objects.</p><p>Please share your feedback or comments if you are looking more proof of concepts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec3c9cc3b1f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>