Thanks Devin & Stephen
Actually I am quite new to writing the Gateway script . I understand that we can achieve it both by writing an XSLT policy or by using a gatewayScript and in both the cases I have to first parse the request.
can you guide me though any sample which can help me to understand how to use the Parser Policy.
Hi Stephen,
I tried using the provided gateway script but it didn't work. Please guide me if there is any prerequisites that must do before implementing it.
Actually, I have to parse the below sample request to read the value for Action and an XML available under
<ns0:RequestDetailsAny> . Now based on action I have to map the XML available under RequestDetailsAny to the backend WSDL.<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username></wsse:Username>
<wsse:Password></wsse:Password>
<wsse:Nonce EncodingType="string"></wsse:Nonce>
<wsu:Created></wsu:Created>
</wsse:UsernameToken>
<wsu:Timestamp wsu:Id="string">
<wsu:Created></wsu:Created>
<wsu:Expires></wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ns0:GenericInquiryRequest
xmlns:ns0="http://www.etisalat.ae/Middleware/GenericInquiryInterface/GenericInquiryRequest.xsd"
xmlns:ns3="http://www.etisalat.ae/Middleware/SharedResources/Common/Common.xsd">
<ns0:RequestedSystem>rtr</ns0:RequestedSystem>
<ns0:Action>Business</ns0:Action> <ns0:ModeType>ghyg</ns0:ModeType>
<ns0:RequestDetails>dghdg</ns0:RequestDetails>
<ns0:RequestDetailsAny>
<ns1:GetOrderPaymentDetailsRequest xmlns:ns1="http://www.tibco.com/schemas/CustomerInquiry/Processes/GetOrderPaymentDetailsRequest.xsd">
<ns2:ApplicationHeader xmlns:ns2="http://www.etisalat.ae/Middleware/SharedResources/Common/ApplicationHeader.xsd">
<ns2:TransactionID>1</ns2:TransactionID>
<ns2:RequestedSystem>mCashier</ns2:RequestedSystem>
<ns2:RetryLimit>1</ns2:RetryLimit>
</ns2:ApplicationHeader>
<ns1:DataHeader>
<ns1:RequestID>186060639</ns1:RequestID>
</ns1:DataHeader>
</ns1:GetOrderPaymentDetailsRequest>
</ns0:RequestDetailsAny> <ns3:AdditionalInfo>
<ns3:Name></ns3:Name>
<ns3:Value></ns3:Value>
</ns3:AdditionalInfo>
</ns0:GenericInquiryRequest>
</soapenv:Body>
</soapenv:Envelope>
Regards
Prashant Sidana
------------------------------
SAMPATH K
------------------------------