cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
51
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Vijay Jayaraman on 28-10-2008 05:15:14 PM
Hi,

We use XML API for an Action element in the builder, as per the document the response xml should comply to the DTD defined for the Action element. But how to handle the exceptions during runtime, as the action element has only ONE exit state(done).

We had a problem, where the response xml was not well-formed per the DTD, and the call get disconnected abruptly, and the activity call log shows, Audium Exception occured for unable to connect to external URL.

If its JAVA API, we could very well handle the above exception inside the catch block, but for XML api can anyone throw some light.

thanks,
Vijay

Subject: Re: Action element  XML API
Replied by: Janine Graves on 28-10-2008 07:48:11 PM
The best thing to do is to code it as a decision instead, and create 2
exit states (done, error) .

In the code, use try/catch.

If you catch any Java exception, then exit down the error state.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links