Assessment 3
Assessment 3
1. Frame XSLT
Request:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.boa.com">
<soapenv:Header/>
<soapenv:Body>
<ns:VaryOnWorkstation>
<!-- hallo -->
<ns:Header>
<ns:header_channel sex="male">hai</ns:header_channel>
<ns:header_user>Vyas</ns:header_user>
<ns:header_workstation>pronteff</ns:header_workstation>
</ns:Header><!-- hallo -->
<ns:header_transactionDate
sex="male">07072022</ns:header_transactionDate>
<ns:header_transactionTime>13:02</ns:header_transactionTime>
<ns:header_transactionReference>hello</ns:header_transactionRe
ference>
<ns:header_channelReserved>confirmed</ns:header_channelReser
ved>
<ns:data_workstation>chennai</ns:data_workstation>
</ns:VaryOnWorkstation>
</soapenv:Body>
</soapenv:Envelope>
Expected Output:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:boa="http://www.boa.com">
<soapenv:Header/>
<soapenv:Body>
<boa:Reply>
<boa:Header>
<boa:header_channel
sex="male">hai</boa:header_channel>
<boa:header_user>Vyas</boa:header_user>
<boa:header_workstation>pronteff</boa:header_workstation>
<boa:ReplyStatus>ERR</boa:ReplyStatus>
</boa:Header>
<boa:header_transactionDate
sex="male">07072022</boa:header_transactionDate>
<boa:header_transactionTime>13:02</boa:header_transactionTim
e>
<boa:header_transactionReference>hello</boa:header_transaction
Reference>
<boa:header_channelReserved>confirmed</boa:header_channelRe
served>
<boa:data_workstation>chennai</boa:data_workstation>
<boa:Fault>
<faultCode>ESB0017</faultCode>
<faultString>Invalid message format</faultString>
<detail>
<faultNumber>2999</faultNumber>
</detail>
</boa:Fault>
</boa:Reply>
</soapenv:Body>
</soapenv:Envelope>
2.CData
i. Request:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<description>
<![CDATA[
This is a CDATA section in XML.
It allows you to include special characters
like <, >, &, and others without escaping them.
]]>
</description>
</root>
Output:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<description>
This is a CDATA section in XML.
It allows you to include special characters
like <, >, &, and others without escaping them.
</description>
</root>
ii. Request: