Author |
Message
|
raas |
Posted: Thu Apr 14, 2016 5:59 am Post subject: Header content change |
|
|
Newbie
Joined: 14 Apr 2016 Posts: 2
|
Hi
I had a requirement like The content of header need to be changed. Source and destination system
Request is like
<LinksInfo OriginSystemCode="1V" OriginVendorCode="1V" OriginVendorType="GDS" DestinationSystemCode="F1" DestinationVendorCode="AA" DestinationVendorType="AIR" Function="AIRLINE" TrackingId="4206B5230A0771EA01D2165F83CF3920" >
AND the reply should be
<LinksInfo OriginSystemCode="F1" OriginVendorCode="AA" OriginVendorType="GDS" DestinationSystemCode="1V" DestinationVendorCode="1V" DestinationVendorType="AIR" >
Like this
can any one help me
how we can do it using ESQL |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 14, 2016 6:03 am Post subject: Re: Header content change |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
raas wrote: |
how we can do it using ESQL |
Same way you'd change any other XML using ESQL. The only thing that's not obvious at first glance is how you'd know to change "1V" to "F1", and I'd assume that's a look up into a table or other map.
Given that this is so easy, what did you try? What happened when you tried it? What about this requirement that you've not mentioned makes it hard? There's no point us suggesting things which have not worked for you, or miss out an important step. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
raas |
Posted: Thu Apr 14, 2016 6:08 am Post subject: |
|
|
Newbie
Joined: 14 Apr 2016 Posts: 2
|
The Request we are getting From MULE in a MQ Queue..we are saving only the LINKHUB content and sending the request to WTX for mapping and then a HTTP request Is send to FareLogix and getting the response. The response is send to WTX for mapping again and i am saving that response back and adding the LinkHUB content to the response and sending reponse back to MULE.
In the meanwhile i need to change the LINKHUB content of source and Destination? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 14, 2016 6:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
raas wrote: |
In the meanwhile i need to change the LINKHUB content of source and Destination? |
So you said.
I repeat my earlier comments. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 14, 2016 7:04 am Post subject: Re: Header content change |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
raas wrote: |
how we can do it using ESQL |
Vitor wrote: |
Same way you'd change any other XML using ESQL. |
Vitor wrote: |
Given that this is so easy, what did you try? What happened when you tried it? |
_________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|