soapui

How to set Request Header in Property transfer step in Soap UI using JsonPath


Im trying to set request header using property transfer step, but could not get anyway to access headers using JsonPath.

What to write in highlighted section to access request headers using jsonPath

enter image description here

Please help...

Response structure in Source:

   {  
      "payload": {
         "content": {
            "reason": "token successfully created",
            "success": "true",
            "authDetails": {
               "accessToken": "MyaccesToken",
               "expiresIn": "My ExpiryTime",
               "refreshToken": "MyRefreshToken"
            }
         }
       }
    }

Request structure in Target field

GET https://Myendpoint/myresouce/etc HTTP/1.1

Header1: myHeader1Value
Header2: **<Im trying to assign "MyaccessToken" in above step to this header>**

Solution

  • Here how you could achieve this: