Forum Discussion

alexisrl733's avatar
alexisrl733
Occasional Contributor
6 years ago

Properties with special characters

Hello team,

 

I'm getting in a response this:

 

<Key>pB8PD+pN8ALD*qB9KDJ+DB8DBD?K/3*BV9/321*NA9///8*CA96107*SN9LDEN*QL97563*EL931*QM97877*Q/9VNV+MQ80*OV9?CR+PA857+BS88370+RL8007.+PS88/7*ER9706+PQ87~h9DAA~IYz o_w 9Y!?CR![+ rcfkdlsq!8Zy!gc 9 A/!*!daa!8!CCC@J02!~i\~i\~J9DKVO*flxKey</Key>

 

*Note the red slashes

And I'm putting this value in a property (MyProperties) step but when I try to grab that value in a later request through ${MyProperties#Key} 

 

<OldKey>${MyProperties#Key}</OldKey>

 

I get this:

 

<OldKey>pB8PD+pN8ALD*qB9KDJ+DB8DBD?K/3*BV9/321*NA9///8*CA96107*SN9LDEN*QL97563*EL931*QM97877*Q/9VNV+MQ80*OV9?CR+PA857+BS88370+RL8007.+PS88/7*ER9706+PQ87~h9DAA~IYz o_w 9Y!?CR![+ rcfkdlsq!8Zy!gc 9 A/!*!daa!8!CCC@J02!~i~i~J9DKVO*flxKey</OldKey>

 

* Note now without the slashes

 

Why this happens and what would be the workaround in this situation?

5 Replies

  • Hi alexisrl733,

     

    I tried the same scenario but it the values i got in Raw is same the value in properties step.

    Can you attach any screenshot. Might be a situation that your values getting changed at some point.

     

     

    • alexisrl733's avatar
      alexisrl733
      Occasional Contributor

      Hey HimanshuTayal

       

      Thank you so much for replying. Here are the screenshots:

       

      1. property.png: you will see the value with the slashes in a property step

      2. xml.png: shows where I reference that property from MyProperties property step

      3. RQ.png: shows how the request gets buit when run that soap step.

       

      As you can see, the slashes got removed somehow and I don't know why?

       

      • alexisrl733's avatar
        alexisrl733
        Occasional Contributor

        I think it's removing all backslashes from the string, maybe it's thinking is a path?