Forum Discussion

Elena's avatar
Elena
New Contributor
16 years ago

Transferring attribute of the property

Hi,

I've have a response like following:
.............

             
                  NY66MH
             


...........

I need to transfer "SecurityNumber" to my next soap request. Could anybody advise how can I do it?

It's not a problem when I want to transfer, for example, ID, then I simply use in my Property Transfer steps:

declare namespace ns='http://types.wise.com/2005/06';
//ns:ID

And it gets ID successfully.
But what would be the syntax for getting SecurityNumber?
I've tried //ns:PaxRefData/SecurityNumber but it doesn't work.

I'd appreciate your help.
Thanks.

4 Replies

  • AnandKiran's avatar
    AnandKiran
    Frequent Contributor
    Hi Elena,
                This out this and let me know whether are you able to get the value of the attribute


    //ns:PaxRefData[@SecurityNumber}


    Cheers !!!

    Anand Kiran G
  • Elena's avatar
    Elena
    New Contributor
    Anand, thanks for your response.
    However, it doesn't work as expected. It transfers empty value (not null, but value with few blanks in it, i.e. SecurityNumber="        ", in spite of the fact, that SecurityNumber is "30" in the response).
  • AnandKiran's avatar
    AnandKiran
    Frequent Contributor
    Oops Sorry Elena,
                In my previous response i have made a small mistake in the XPath try this one out
    //ns:PaxRefData/@SecurityNumber

    and let me know whether you still face the same problem

    Cheers !!!
  • Elena's avatar
    Elena
    New Contributor
    Yep, this works.
    Thanks a lot for your help!