Solved

How to Add Url inside an XML tag

  • 9 April 2021
  • 2 replies
  • 408 views

Badge +3

i am trying to create a tag <Send xmlns="http://tempuri.org/"> using XML outbound message in IFS FSM. Can anyone help me on how to configure this url using xml maps. Below is the expected output.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >
    <soap:Body>
        <Send xmlns="http://tempuri.org/">
            <userid>xxxxx</userid>
            <password>xxxx</password>
            <SourceAddress>xx</SourceAddress>
            <DestinationAddress>xxxxx</DestinationAddress>
            <ShortMessage>xxxxx</ShortMessage>
            <FlashSMS>xxx</FlashSMS>
            <Smsc>xxxxx</Smsc>
        </Send>
    </soap:Body>
</soap:Envelope>

icon

Best answer by Nirmal Seneviratne 7 May 2021, 12:54

View original

This topic has been closed for comments

2 replies

Userlevel 1
Badge +2

You can create this xml using the below map.

As you can see, a new mapping record is added as:

Extract Column = @xmlns, Value = http://tempuri.org/

 

This map will result in the following xml.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<soap:Envelope
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <Send xmlns="http://tempuri.org/">
            <userid>xxx</userid>
            <password>xxx</password>
            <SourceAddress>xxx</SourceAddress>
            <DestinationAddress>xxx</DestinationAddress>
            <ShortMessage>xxx</ShortMessage>
            <FlashSMS>xxx</FlashSMS>
            <Smsc>xxx</Smsc>
        </Send>
    </soap:Body>
</soap:Envelope>

Badge +3

Thank You @Nirmal Seneviratne Could you please assist on how we can concat 

“charset=utf-8”  and to add http headers as 
“Content-Type: text/xml; charset=utf-8” and I have tried as below but it is not working as expected. Kindly advice.

 

Thanks

Manikandan