Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

How to parse JSON response in SOAPUI

$
0
0

I am currently working automation with SOAPUI .

 

I need to do End to End for 3 services.

 

  1. A svc – it will return rxEncryptedToken , if success else success code as different
  2. B Svc -  I need to take rxEncryptedToken from 1st service and pass to 2nd

 - Here 1st Svc will give different Response depend on the Login in Back end.

SO i am not able to parse correctly.

 

1st Svc

 

One response

 

{"response": {"header": {

   "statusCode": "0058",

   "statusDesc": "Profile Already Exist.",

   "remoteIP": "216.195.30.83",

   "refId": "Id-bcb59156d766010028240000713ccebb"

}}}

 

 

Another response

 

{"createProfileAccountResponse": {

   "statusCode": "0000",

   "statusDescription": "Success",

   "ecStatus": {"extracareNumber": ""},

   "rxStatus":    {

      "rxProfileAvailable": "Y",

      "rxEncryptedToken": "MEDcPfr%2BPM1i7Ku04kNgbEDJBj9IazM7%"

   },

   "smsStatus":    {

      "subscribedForRxAlerts": "",

      "phoneNumber": ""

   }

}}


Viewing all articles
Browse latest Browse all 20990

Trending Articles