The issue is the API is not set up yet on the project which i am working.
But the specs has the JSON PAYLOAD as request and then the response is what i pasted above.
So i am trying to get the code ready to parse in the meantime until the API is set up. Hopefully i will have something to work with POSTMAN as soon as API is set up.
Once i receive the response , i need to parse it for any error and then shutdown the operation. At the most i can convert the response to string and check for error.
go to post
Thank you Chris.
So to give you a little more information, i want to disable the Operation if the response i receive after sending a message is not a valid one.
If i disable using Ens.Director, does the last message i sent gets re-queued or is it considered processed?
Thanks,
Jimmy Christian.
go to post
Thank you Eduard.
Very informative article.
go to post
Thats a good suggestion.
I will check that option out and see how to use POSTMAN as a proxy. Will let you know.
Thank you Jeffrey.
go to post
Thanks Sourabh. I was able to put some debug variables and troubleshoot the issue.
Appreciate your help.
Regards,
Jimmy Christian
go to post
Thank you Neerav.
The message i pasted doesnt look like JSON.
Looks like i may have to use some STRING functions to parse it.
I will let you know once i get the right specs of the response. Thank you for time.
Regards,
Jimmy Christian.
go to post
Thank you Danny.
go to post
Thank you. Yes, i am going to find out in a day or two.
Appreciate your help and time.
go to post
The issue is the API is not set up yet on the project which i am working.
But the specs has the JSON PAYLOAD as request and then the response is what i pasted above.
So i am trying to get the code ready to parse in the meantime until the API is set up. Hopefully i will have something to work with POSTMAN as soon as API is set up.
Once i receive the response , i need to parse it for any error and then shutdown the operation. At the most i can convert the response to string and check for error.
go to post
Thank you Eduard.
So the message i posted is a response to an API call i make with JSON payload.
So i was assuming that the response would be JSON and i can try to parse it.
But if it is not a JSON, is there a utility to parse it or i need to use the provided STRING functions like ZSTRIP and so on?
Thanks,
Jimmy christian.
go to post
Cache for Windows (x86-64) 2018.1.1 (Build 312_1_18937U) Fri Apr 26 2019 17:58:36 EDT
I tried dynamic objects but gives me an error, unless i am not doing it correctly or if syntax is not correct.
Set json =""
While ('objStream.AtEnd) {
Set json = json _ objStream.ReadLine()
}
while iter.%GetNext(.key , .value )
{
write "key = "_key_" , value = "_value,!
}