Chris M
Chris M

Reputation: 23

AWS API gateway convert XML to JSON conversion

In our case we are having response received as a soap XML and we trying to convert that to JSON payload using the integration response mapping template. But it is not working.

<?xml version = "1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV = "http://www.w3.org/2001/12/soap-envelope" SOAP-ENV:encodingStyle = "http://www.w3.org/2001/12/soap-encoding">
    <SOAP-ENV:Body xmlns = "http://.org/quotation" TimeStamp="2025-02-19T10:18:15.053Z" Version="0.1">
        <ResponseMessage>
            <Success/>
        </ResponseMessage>
        <Users>
            <User BirthDate="1901-01-01" GenderCode="M">
                <PersonName OrderSequenceNo="1">
                        <NamePrefix>MR</NamePrefix>
                        <GivenName>EFGH</GivenName>
                        <SurName>ABCD</SurName>
                </PersonName>
            </User>
        </Users>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Upvotes: 0

Views: 26

Answers (0)

Related Questions