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
Andrzej_Filusz
Contributor

Hi Arek,

Please use "Expression Type" as XML in your Router.

Then you can configure one route like this:

Condition: //*[local-name()='SendOrder']

and another one like below:

Condition: //*[local-name()='GeneratePrintOut']

router_local_name.png

BR,

Andrzej