Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Final Assessment

1. Create an API with OAuth Security along with xml Request


validation and create one consumer organization need to do
testing with respective consumer credentials.
2. Need to store in database API name, Global-transaction-id
and request along with response.
3. Need to do JSON Encryption and Decryption in API Connect.
4. Create a MPGW service with HTTPS handler and need to add
Dynamic namespace using XSLT in DP for below Request1.
5. MPGW to WSP service with sample xml Request2 for
calculator WSDL.

Request1:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:oab="http://www.oab.com">
<soapenv:Header/>
<soapenv:Body>
<oab:VaryOnWorkstation>
<!-- hallo -->
<oab:Header>
<oab:header_channel sex="female">hai</oab:header_channel>
<oab:header_user>nag</oab:header_user>
<oab:header_workstation>pronteff</oab:header_workstation>
</oab:Header><!-- hallo -->

<oab:header_transactionDate
sex="female">07072022</oab:header_transactionDate>
<oab:header_transactionTime>13:02</oab:header_transactionTime>
<oab:header_transactionReference>hello</oab:header_transactionReference>
<oab:header_channelReserved>confirmed</oab:header_channelReserved>
<oab:data_workstation>chennai</oab:data_workstation>
</oab:VaryOnWorkstation>
</soapenv:Body>
</soapenv:Envelope>
Expected output:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:oab="http://www.oab.com">
<soapenv:Header/>
<soapenv:Body>
<oab:Reply>
<oab:Header>
<oab:header_channel sex="female">hai</oab:header_channel>
<oab:header_user>nag</oab:header_user>
<oab:header_workstation>pronteff</oab:header_workstation>
<oab:ReplyStatus>ERR</oab:ReplyStatus>
</oab:Header>
<oab:header_transactionDate
sex="female">07072022</oab:header_transactionDate>
<oab:header_transactionTime>13:02</oab:header_transactionTime>
<oab:header_transactionReference>hello</oab:header_transactionReference>
<oab:header_channelReserved>confirmed</oab:header_channelReserved>
<oab:data_workstation>chennai</oab:data_workstation>
<oab:Fault>
<faultCode>ESB0017</faultCode>
<faultString>Invalid message format</faultString>
<detail>
<faultNumber>2999</faultNumber>
</detail>
</oab:Fault>
</oab:Reply>
</soapenv:Body>
</soapenv:Envelope>
***************************************************************************

Request 2:

Backend wsdl URL :


http://www.dneonline.com/calculator.asmx?WSDL

Backend URL:
http://www.dneonline.com/calculator.asmx

User Input:

<Add>
<intA>1</intA>
<intB>2</intB>
</Add>

User Output:

<AddResponse>
<AddResult>3</AddResult>
</AddResponse>

Backend Input:
===============
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:Add>
<tem:intA>1</tem:intA>
<tem:intB>2</tem:intB>
</tem:Add>
</soapenv:Body>
</soapenv:Envelope>

Backend Output:
=================

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<AddResponse xmlns="http://tempuri.org/">
<AddResult>3</AddResult>
</AddResponse>
</soap:Body>
</soap:Envelope>

You might also like