Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

modify xml request

I have incoming request has pay load as follows.

<?xml version="1.0" encoding="UTF-8"?>
  <abcMessage messageId="234723487234234" receiptDate="YYYY-MM-DD HH:MM:SS Z" attemptNumber="1">
    <source address="+919585" carrier="103" type="MDN" />
    <destination address="12345" type="SC" />
    <message>123857AB12</message>
  </abcMessage>

I want to change request to as follows.

<?xml version="1.0" encoding="UTF-8"?>
<InRequest>
	<abcMessage messageId="234723487234234" receiptDate="YYYY-MM-DD HH:MM:SS Z" attemptNumber="1">
    		<source address="+919585" carrier="103" type="MDN" />
    		<destination address="12345" type="SC" />
    		<message>123857AB12</message>
	</abcMessage>
</InRequest>

How do I change incoming request body to the above format?

0 2 196
2 REPLIES 2