To Reproduce
Execute the Java class Main.java.txt with:
The wrong output is:
{{<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<Request>
<applicationName>AcmeApp</applicationName>
</Request>
<Request>
<requestNumber>25</requestNumber>
</Request>
</soapenv:Body>
</soapenv:Envelope>}}
Expected behavior
The output should be:
{{<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acme="http://www.acme.xyz">
<soapenv:Body>
<acme:Request>
<acme:applicationName>AcmeApp</acme:applicationName>
<acme:requestNumber>25</acme:requestNumber>
</acme:Request>
</soapenv:Body>
</soapenv:Envelope>}}
Additional Info
I unzipped the atlasmap-mapping-test-ui.adm and found that atlasmapping-UI.0.json doesn't contain all the namespaces declarations for target xml.
I edited a new atlasmapping-UI.0.json and rezziped in a new atlasmap-mapping-test-forged.adm.zip adding:
{{
{
"alias" : "acme",
"uri" : "http://www.acme.xyz"
}
}}
And the output has correct namespaces.
It seems that opening/editing the atlasmap-mapping-test-forged.adm.zip with the UI removes the namespaces again.
Environment
Atlas UI Version: atlasmap-standalone-2.4.0-M.4.jar
Atlasmap: Runtime Version: 2.4.0-M.4
JDK: openjdk version "11.0.2" 2019-01-15
OS: Macosx