cancel
Showing results for 
Search instead for 
Did you mean: 

XPath

Former Member
0 Kudos

Hey guys,

wat is the main use of XPath in SAP XI,i know it identifies different component of XML documents but wats the main use of it and also what exactly is meant by payload.

thanx

aamir

Accepted Solutions (1)

Accepted Solutions (1)

agasthuri_doss
Active Contributor
0 Kudos

Hi,

Xpath :

Yes, the main purpose is it to identify.

Assume an option to have "and" or an "or" condition if required ( Example if want to check if "x" and "y" is satisfied or it you wanna check if "x" or "y" is satisfied, this can also be acheived)

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Payload :

It is the actual message content nothing but XML.and it the is actual business data to be exchanged in xml format.In that SOAP Header consitst of important information such as sender service,sender interface,sender name space

Regards

Agasthuri Doss

Answers (2)

Answers (2)

moorthy
Active Contributor
0 Kudos

Hi,

<i>XPath is a language for finding information in an XML document</i>. It is used to navigate through elements and attributes in an XML document.So thru this you can read the element and point out the element to work on, As you know in XI all the messages are processing with xml message. There is a need to navigate the xml document for many reasons. For e,g to do conditional routing i.e based on the payload data field you need to route into some receiver in that case you need to access that element. Totally there is a need to access xml element at any point of time.

Payload-this doc may help you-http://help.sap.com/saphelp_nw04/helpdata/en/b6/0b733cb7d61952e10000000a11405a/content.htm

<i>The payload is the actual contents (business data) of a message in the Exchange Infrastructure.</i> - from sap help

Regards,

Moorthy

Former Member
0 Kudos

Hey Aamir

To know about XPath expression, this link might help you :

http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/content.htm

Following links will be helpful to you to understand some actual usage of Xpath expression :

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb...

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

In sweet and simple one line definition, we can say : XI payload is actual business data to be exchanged , which is displayed in XML format.

To know more about payload you can have a look at this link:

http://help.sap.com/saphelp_nw04/helpdata/en/b6/0b733cb7d61952e10000000a11405a/content.htm

cheers

Pooja

<b></b>