cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Integration Suite - XPath check beginning of payload

0 Kudos

Hello Experts,

how can I check using XPath the beginning of payload (XML) in Route ?

I have 2 method, 1-st start with "<n0:SendOrder", 2-nd start with "<n0:GeneratePrintOut"

In route I have to check which had called and redirect to corresponding receiver.

1-st:

<n0:SendOrder xmlns:n0="http://tempuri.org/" xmlns:n1="http://schemas.datacontract.org/2004/07/InterfaceSendOrderWCF.Data" xmlns:n2="http://schemas.datacontract.org/2004/07/InterfaceSendOrderWCF.Data.Types" xmlns:n3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:prx="urn:sap.com:proxy:Q10:/1SAI/TASF0E1" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<n0:order>
...

2-nd:

<n0:GeneratePrintOut xmlns:n0="http://tempuri.org/" xmlns:prx="urn:sap.com:proxy:Q10:/1SAI/TAS58A10" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<n0:orderNR>1009562209</n0:orderNR>
<n0:reportName>ETYKIETA161X107</n0:reportName>
</n0:GeneratePrintOut>

 

 

 

View Entire Topic
helmut_skolaut3
Active Participant

You have to declare in the iflow the used namespaces here:

helmut_skolaut3_0-1716356826790.png

The notation you can read here:
https://help.sap.com/docs/cloud-integration/sap-cloud-integration/specify-runtime-configuration

The proposed solution of the previous reply woulds work, too. However it's more expensive as the whole XML node is parsed. If this a high volume interface, it's recommended to make an absolute addressing.

BR Helmut