Skip to main content
Solved

How to Add Url inside an XML tag


Forum|alt.badge.img+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>

Best answer by Nirmal Seneviratne

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>

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Forum|alt.badge.img+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>


Forum|alt.badge.img+3
  • Author
  • Do Gooder
  • 5 replies
  • May 18, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings