Skip to Content
0

XSLT mapping to remove SOAP envelop

Feb 02, 2017 at 11:13 AM

39

avatar image
Former Member

we are receiving the payload from thirdparty system in this format :

<?xml version="1.0"?> <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xog="http://www.niku.com/xog" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ABC.com.au:sapecc:projectsystems" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Header/> <soap:Body> <urn:ProjectDataRequest> <ProjectDataRequestMessage> <TransactionType>A</TransactionType> <ProjectTemplate>ABC</ProjectTemplate> <ProjectDefinition>A.4</ProjectDefinition> <ProjectDescription>Project Shire</ProjectDescription> <StartDate>20150508</StartDate> <FinishDate>20171018</FinishDate> <ProjectProfile>DEVT</ProjectProfile> <ResponsiblePerson>46250</ResponsiblePerson> <IMCInitiative>8</IMCInitiative> <ApprovalYear>2017</ApprovalYear> <CapitalExpensePositionID>135</CapitalExpensePositionID> <ExpensePostitionID>200</ExpensePostitionID> <PAPostitionID>12345678</PAPostitionID> <ProfitCentre>20171017</ProfitCentre> <EPMProjectNumber>A.46048</EPMProjectNumber></ProjectDataRequestMessage></urn:ProjectDataRequest></soap:Body></soap:Envelope>

But I want a payload in this format without SOAP envelop .

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

ABC.com.au:sapecc:projectsystems"> A ABC A.4 Project Shire 20150508 20171018 DEVT 46250 8 2017 135 200 12345678 20171017 A.46048

I tired with the below XSLT code :

http://www.w3.org/1999/XSL/Transform" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/" >

This is the output I got ,which is not in expected format:

http://www.w3.org/2001/XMLSchema" xmlns:xog=" http://www.niku.com/xog" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn: telstra.com.au:sapecc:projectsystems" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"> A ABC A.4 Project Shire 20150508 20171018 DEVT 46250 8 2017 135 200 12345678 20171017 A.46048

Please suggest .

Regards,

Akhila.A

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Feb 02, 2017 at 12:00 PM
0

Hi Akhila

Please find the Below Link

https://archive.sap.com/discussions/thread/3426719

Thanks

Satish Kumar

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi satish,

with the code mentioned in the thread.This is the output I am getting :

output-afterxsltcode.png

I am expecting like this expectedoutput.png

Regards,

Akhila.A

0