" /> Consuming REST Web Service using IRD 8.1 - Genesys CTI User Forum

Author Topic: Consuming REST Web Service using IRD 8.1  (Read 1141 times)

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Consuming REST Web Service using IRD 8.1
« on: February 09, 2023, 10:10:54 AM »
Advertisement
Hi, hope everything's fine around there.

I may need to consume a REST type web service soon, but I see that IRD only refers to SOAP. Is it somehow possible to consume a REST type service, instead?


Regards.

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Consuming REST Web Service using IRD 8.1
« Reply #1 on: February 09, 2023, 03:02:00 PM »
Check this out:
https://joeywhelan.blogspot.com/2014/09/rest-calls-from-genesys-routing.html

Also, check this for an almost-easy way to parse the data returned:
http://www.sggu.com/smf/index.php/topic,11472.msg52289.html#msg52289

hope it helps

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Re: Consuming REST Web Service using IRD 8.1
« Reply #2 on: February 09, 2023, 03:24:15 PM »
Thank you HSU, just found that document on Joey's blog; so basically he suggests sending the request as HTTP using a json as its body, if I got it correctly.
« Last Edit: February 09, 2023, 03:49:47 PM by Gef Buneri »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Consuming REST Web Service using IRD 8.1
« Reply #3 on: February 09, 2023, 11:38:02 PM »
The body is Json, you build the body with the parameters that you need for your request. If you don't need any, just send the request. Test with Postman for example and your will see what you need to send

Enviado de meu SM-N9600 usando o Tapatalk


Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Re: Consuming REST Web Service using IRD 8.1
« Reply #4 on: February 15, 2023, 12:25:35 PM »
Thanks Cav.