Hi Steve
Thanks for the reply
I am new to the interaction designer ..
This is how I understood.
Step 1: I will create the one subroutine, which is customer facing and plays the welcome message and some menu option.
If customer selects the option 1 in the menu, I will use the Send Custom Notification tool to generate the custom event.
Step 2: I will create new handler which is listening for the custom event(using Custom Notification Initiator) generated in the subroutine in step1 and use the SOAP HTTP request tool call the GetCustomerInfo webservice.
do I need to make any extra setting the SOAP HTTP request tool to make this as asynchronous or just normal setting same as synchronous webservice ?
if the control comes out in success exit path of the SOAP HTTP request tool, I will set the call attribute with response value from webservice and exit the handler . If control comes out with any other exit path, like HTTP Error, Timeout, I will set call attribute as failure and exit the handler
Step3: what I have to do while it is executing the step 2? Play some audio file using play audio tool with audio file length greater than timeout value specified in SOAP HTTP Request ? . Informing the customer that ,we are fetching their details
------------------------------
Halesha Nagarajappa
Accenture Solutions Pvt. Ltd.
------------------------------
Original Message:
Sent: 04-30-2019 10:19
From: Steve Owen
Subject: asynchronous web service call using SOAP HTTP Request tool in handler
You can make and asynchronous, multi-threaded call using the custom notification tool and initiator. This will spawn a new handler thread while the original call thread continues on. Just pass the call ID as a string to the custom notification tool and convert the string back to a call ID from the initiator. Use a call attribute in both threads (a set attribute in the SOAP thread and a get attribute in the call thread) to determine when the SOAP request is complete.
------------------------------
Steve Owen
Avtex
Original Message:
Sent: 04-29-2019 23:27
From: Halesha Nagarajappa
Subject: asynchronous web service call using SOAP HTTP Request tool in handler
Hi All,
is it possible to call the asynchronous web service using the SOAP HTTP Request tool. If we can do this pls tell me how we can do this and how to progress with the rest of the calll flow if we have some dependency on the response of that web service ?. Lets says i have GetCustomerInfo as asynchronous web service and i need the response of that web service in my subsequent steps ..If its synchronous web service, i would have waited till timeout occurs and based on that i would have take decision.
#Handlers
------------------------------
Halesha Nagarajappa
Accenture Solutions Pvt. Ltd.
------------------------------