XML tag qualifier missing in transformed message

samedi 1 novembre 2014

Using Mirth version 3.1.0.7420

Channel with WebServiceSender destination.



I have a outgoing xml template (with strip namespace unchecked). The template starts out with the following:



<?xml version="1.0" encoding="UTF-8"?>

<Message xmlns:xsd="http://ift.tt/WPkwi5; xmlns:xsi="http://ift.tt/Atvu06; xmlns="http://ift.tt/1rLKrXh; version="010" release="006" >

<Header>

<To Qualifier="M" />

<From Qualifier="M" />

..........



In a javascript transformer the <To> tag is set using

tmp['Header']['To'] = $('NCPDP'); A channelMap variable



The resulting outbound message using the ${message.encodedData} variable in the soap envelope begins:



<Message xmlns="http://ift.tt/1rLKrXh; xmlns:xsd="http://ift.tt/WPkwi5; xmlns:xsi="http://ift.tt/Atvu06; release="006" version="010">

<Header>

<To>9999999</To>

.......



Notice the qualifier in the <TO> tag is missing, the rest of the message appears correct.



What needs to be done to correct this behavior?





XML tag qualifier missing in transformed message

0 commentaires:

Enregistrer un commentaire