cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
945
Views
5
Helpful
2
Replies

Handling unavailability of XML file hosted on IIS server on UCCX script

hi guys,

i have succesfully parsed an XML file hosted on IIS server from UCCX 8.5.

however if the XML file becomes unavailable for some reason (eg. IIS service down or web server down), i would receive the "i'm sorry we're currently experiencing system problem" system announcement.

is there a way of checking for error on the "Create XML Document" step?

kind regards

daniel

2 Replies 2

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

yes, you can insert an On Exception Goto step before the XML handling steps and direct the script to a labeled step.

Like this:

1. On Exception Goto (Label ALTERNATE)

(...)

5. document = Create XML Document

6. // do something with the document

7. End // regular execution stops here

(...)

10. label=ALTERNATE Play Prompt("Please call back later.wav")

The above script will skip to line 10 if the document is not available,  but will continue at line 6 if the document reads alright.

What exception to catch? Probably com.cisco.doc.DocumentIOException, or, if you want to be on the safe side, just catch com.cisco.wfapi.WFExecutionException.

Note that the Create XML Document step does not issue any document handling command, it just creates an internal reference - so the actual HTTP request goes out later, probably when doing a Cache Document or a Get XML Document Data step.

You can read more about exceptions here: https://supportforums.cisco.com/docs/DOC-27235

G.

Thanks again for your help.

That document on ccx exception list is very2 useful indeed.

kind regards

Daniel