NetTalk Central

Author Topic: JSON File In and Out  (Read 2538 times)

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
JSON File In and Out
« on: April 25, 2018, 09:31:46 AM »
A vendor wants to "call" a web service with a JSON file as the parameter. I need to process and pass back a JSON file with different information.

The output I think I define as a queue and specify JSON as the return format. How do I handle the parameter input? I would like to drop it in a queue.   

Thank you,

Rich Bowman

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: JSON File In and Out
« Reply #1 on: April 26, 2018, 01:57:18 AM »
I presume you've not made an API before?
If not then watch clarionlive webinars #300, #302 and #304.
Seriously. It'll take a few hours and save you days of wandering in the dark.

>> A vendor wants to "call" a web service with a JSON file as the parameter. I need to process and pass back a JSON file with different information.

Really easy to do once you know how.

>> The output I think I define as a queue and specify JSON as the return format.

yep.

>> How do I handle the parameter input? I would like to drop it in a queue.   

Then make a queue, and set it as the Parameter on the incoming tab. The incoming JSON will be parsed into the queue for you.

You just get the formats all right, see the auto-generated docs, and put your hand-code into the ServiceMethod routine.
If you ask at the webinar today John will show you! <g>

cheers
Bruce


RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: JSON File In and Out
« Reply #2 on: April 26, 2018, 03:12:46 AM »
I've watched 300 but will get to 302 and 304 shortly then I'll check one of the webinars.

Thank you,