Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Gef Buneri on February 09, 2023, 10:10:54 AM

Title: Consuming REST Web Service using IRD 8.1
Post by: Gef Buneri on February 09, 2023, 10:10:54 AM
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.
Title: Re: Consuming REST Web Service using IRD 8.1
Post by: hsujdik 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
Title: Re: Consuming REST Web Service using IRD 8.1
Post by: Gef Buneri 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.
Title: Re: Consuming REST Web Service using IRD 8.1
Post by: cavagnaro 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

Title: Re: Consuming REST Web Service using IRD 8.1
Post by: Gef Buneri on February 15, 2023, 12:25:35 PM
Thanks Cav.