Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

XSLT code to remove the SOAP envelope of the API response

$
0
0

Hello Experts,

 

I am working on a Proxy to SOAP synchronous scenario in which i need to ignore the soap envelope and allow only the body of the response to pass through the source. Please find the structure of the response below:-

 

<?xml version="1.0" encoding="UTF-8"?>

-<SOAP-ENV:Envelope xmlns:ns="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> -<SOAP-ENV:Header> <Security xsi:type="wsse:SecurityType" xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext"> </Security> -<RequesterCredentials xsi:type="ebl:CustomSecurityHeaderType" xmlns="urn:ebay:api:PayPalAPI"> -<Credentials xsi:type="ebl:UserIdPasswordType" xmlns="urn:ebay:apis:eBLBaseComponents"> <Username xsi:type="xs:string"> </Username> <Password xsi:type="xs:string"> </Password> <Signature xsi:type="xs:string"> </Signature> <Subject xsi:type="xs:string"> </Subject> </Credentials> </RequesterCredentials> </SOAP-ENV:Header> -<SOAP-ENV:Body id="_0"> -<DoReferenceTransactionResponse xmlns="urn:ebay:api:PayPalAPI"> <Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2014-09-19T03:57:35Z</Timestamp> <Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack> <CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">ceb69d0e58bd2</CorrelationID> <Version xmlns="urn:ebay:apis:eBLBaseComponents">94.0</Version> <Build xmlns="urn:ebay:apis:eBLBaseComponents">12896494</Build> -

 

<DoReferenceTransactionResponseDetails xsi:type="ebl:DoReferenceTransactionResponseDetailsType" xmlns="urn:ebay:apis:eBLBaseComponents"> <BillingAgreementID xsi:type="xs:string">B-8XB79036VH779623L</BillingAgreementID> -<PaymentInfo xsi:type="ebl:PaymentInfoType"> <TransactionID>5GX48751EK6276517</TransactionID> <ParentTransactionID xsi:type="ebl:TransactionId"> </ParentTransactionID> <ReceiptID> </ReceiptID> <TransactionType xsi:type="ebl:PaymentTransactionCodeType">mercht-pmt</TransactionType> <PaymentType xsi:type="ebl:PaymentCodeType">instant</PaymentType> <PaymentDate xsi:type="xs:dateTime">2014-09-19T03:57:34Z</PaymentDate> <GrossAmount xsi:type="cc:BasicAmountType" currencyID="AUD">10.00</GrossAmount> <FeeAmount xsi:type="cc:BasicAmountType" currencyID="AUD">0.54</FeeAmount> <TaxAmount xsi:type="cc:BasicAmountType" currencyID="AUD">0.00</TaxAmount> <ExchangeRate xsi:type="xs:string"> </ExchangeRate> <PaymentStatus xsi:type="ebl:PaymentStatusCodeType">Completed</PaymentStatus> <PendingReason xsi:type="ebl:PendingStatusCodeType">none</PendingReason> <ReasonCode xsi:type="ebl:ReversalReasonCodeType">none</ReasonCode> <ProtectionEligibility xsi:type="xs:string">Ineligible</ProtectionEligibility> <ProtectionEligibilityType xsi:type="xs:string">None</ProtectionEligibilityType> </PaymentInfo> </DoReferenceTransactionResponseDetails> </DoReferenceTransactionResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

 

 

can some1 help me with the XSLT code for the same.?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>