Skip to Content

REST service response : Unable to capture all fields

Hello Experts,

I have a proxy to REST synch scenario , I am able to post the message into third party usign the rest adapter.

The response coming from the service is not being captured in PI ,

When I use postman to test the same service for same paylaod I get a response liek below

{

"status": "complete"

"statuscode":"01"

}

In message moni I get only one field in JSON format .

"status" : ''complete"

Also, how do I map this to the interface structure which in XML will have namespace and a xml root element

I did see the configuration in REST adapter -> dataformat for response.. but still gettign same error

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 3 days ago

    Hi Ravi!

    As I could see, comma separator between two fields in JSON message is absent in the example you've provided. Is it typing mistake?

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • 3 days ago

    Hi Evgeniy,

    Yup.. the response in postman is

    {

    "status": "complete",

    "statuscode":"01"

    }

    I am unabel to get second field in response in message monitor..

    Add comment
    10|10000 characters needed characters exceeded