Add schema details in Responder Correlation

meghana1meghana1 Posts: 13

hi,

We have multiple request which have same main tag but we need to identify request with schema details. As these requests have different schema details. Any way to add it in responder correlation ?

Comments

  • keegan_chankeegan_chan Posts: 34

    Responder correlation on "Request Body" allows one to use xpath to define the correlation. That is usually sufficient for differentiate schema details.

  • meghana1meghana1 Posts: 13

    if we add the xpath for Responder correlation on "Request Body then it select local name as main xml header <Request....DataOrder>
    but in actual XML it has schema also. That we are not able to select. As there are multiples request which has same header <Request....DataOrder>
    but schemas are different. so how do we add those schema for identify the correct request.

  • keegan_chankeegan_chan Posts: 34

    Can you give an example of how "in actual XML it has schema also" in your case?

  • meghana1meghana1 Posts: 13

    <ns1:Request....DataOrder xmlns:ns1="urn.v4.abc.service.cm>

    <ns1:Request....DataOrder xmlns:ns1="urn.v4.pqr.service.cm>

  • benken_parasoftbenken_parasoft Posts: 417 ✭✭✭

    but schemas are different

    I am inferring you mean that the namespaces are different. You can build XPaths that match only on local name or localname and namespace. For example:
    /*:Request/*:DataOrder
    vs
    /*:Request/*[local-name(.)="DataOrder" and namespace-uri(.)="urn.v4.pqr.service.cm"]

Sign In or Register to comment.