Download presentation
Presentation is loading. Please wait.
Published byBertold Amsel Modified over 6 years ago
1
Processing Asynchronous REST Requests in Orchestration Designer
Ross Yakulis
2
Orchestration Designer
Web service call Create a REST web service operation in OD. The operation must pass the web service session:sessionid the MPP IP address, get from request. getRemoteAddr(). Need to write Java to get the value and store into an OD variable. a handler URL for the reply Getting the reply Need to add a catch for externammessage.<vxmlevent> vxmlevent is the name the web service reply handler sends to the CCXML basic HTTP IO Proccessor When the event is caught, use goto and a capture expression to get the result data. The expression is application.lastmessage$.content
3
Web Service Web Service Axis Limitations
Must return 200 Okay Must return some data, even if it is dummy data ({"result":“okay"}) After completing the request the results are posted to the handler URL with the CCXML session id and the MPP IP address.
4
Web Service Reply Handler
Use the IP address and session id to send an event to CCXML. vxmlevent is the name of the event to be sent to the VXML application and message is the data Note to invoke the CCXML HTTP IO Processor you have to have mutual authentication setup between the application server and the Experience Portal system Send avaya.vxml.event with parameters vxmlevent and message as well as session id.
5
Experience Portal Default CCXML has a transition for the event avaya.vxml.event Input vxmlevent, name of the event to send to vxml Input message, the payload or reply from the web service. This transition sends an event to the vxml application Note, the data for the external event to VXML is limited to a single string currently. So the data may need to be parsed once the application receives it. Could also send the data as a string delimited by | which OD would treat as a collection.
6
Static Runtime Model OD Speech Asynchronous REST Web Service
Request + Callback URL and CCXML Session Id OD data Node WS Handler Reply + CCXML Session Id Start Dialog HTTP Post to the basic httpioprocessor (avaya.vxml.event) with vxmlevent set to asyncwsreply Voice Browser CCXML Browser Event to VXML (externalmessage.asyncwsreply)
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.