on 05-16-2018 12:02 PM
I tried the following java mapping
inputContent=inputContent.replaceAll("\\<\\?xml(.+?)\\?\\>", "").trim().replaceAll(" xmlns=\"http://taf-jsg.info/schemes\"","");
inputContent = inputContent.replaceAll("\\<","\\<").replaceAll("\\>","\\>"); inputContent = inputContent.replaceAll("&","&");
return inputContent;
In the mapping test it works correctly by letting out a single string like
<string><TrainRunningForecastMessage xmlns="http://taf-jsg.info/schemes">
<MessageHeader>
<MessageReference>
<MessageType>4004</MessageType>
<MessageTypeVersion>2.1.3</MessageTypeVersion>
<MessageIdentifier>e50b84e6-a319-4b86-ae44-d4fac65a71ad</MessageIdentifier>
<MessageDateTime>2018-05-15T17:32:54.057+02:00</MessageDateTime>
</MessageReference>
<Sender>3178</Sender>
<Recipient>2183</Recipient>
</MessageHeader>....
when the message leaves the communication channel and arrives at the destination it exits instead in the following format
<string><TrainRunningForecastMessage>
<MessageHeader>
<MessageReference>
<MessageType>4004</MessageType>
<MessageTypeVersion>2.1.3</MessageTypeVersion>
<MessageIdentifier>fcb797d3-aba7-437b-8475-a287bfa886bf</MessageIdentifier>
<MessageDateTime>2018-05-15T12:07:37.017+02:00</MessageDateTime>
</MessageReference>
<Sender>3178</Sender>
<Recipient>2183</Recipient>
</MessageHeader>....
Why trasforma "<" with "<" ?
Hi,
I thnik, you should be doing below only to get the desired result:
Regards,
Dilip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.