Server Application Error

An error has occurred that is preventing your request from completing.
Please go back and try again or go to the online support for more information.

Diagnostic Information

c:\trapeze\info-webv21\hw\Apps\System\SystemError.Desktop.ui.xsl(0) : XmlException : (col=0 pos=0 code=80004002 source=msxml6.dll)
COM error: No such interface supported: No such interface supported

--Stack Trace--
[ThreadId: 5144, ProcessId=6828, Computer=SVRT21AVL]
Hiwire/Default
SrvShell/_ServiceDispatch

call stack

[ThreadId: 5144, ProcessId=6828, Computer=SVRT21AVL]
Hiwire/Default
SrvShell/_ServiceDispatch

script stack

File                                                Line CmdName   CmdAttributes                        
-------------------------------------------- ----------- --------- ------------------------------------ 
c:\trapeze\info-webv21\hw\Default.method.xml         271 transform xpath="/Model/System/Form/UI/text()" 

script trace

<Commands>
    <input/>
    <session method="start" xpath="/Model/System/SessionID"/>
    <change_form xpath="/Model/Request/Body/Fields/Field[@name='.a' or @name='_a' or @name='alias']/@value"/>
    <headers method="get" xpath="/Model/Request/Header"/>
    <choose>
        
        <when test="/Model/System/DeviceBrowser/Group[text() = 'Twilio']">
            
            <run file="ValidateTwilioRequest.xml"/>
            
        </when>
        
    </choose>
    <when test="/Model/System/DeviceBrowser/Group[text() = 'Twilio']">
        
        <run file="ValidateTwilioRequest.xml"/>
        
    </when>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'LANG' and string-length(@value) &gt; 1]">
            
            <session method="set" name="LANG" xpath="/Model/Request/Body/Fields/Field[@name = 'LANG']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'LANG' and string-length(@value) &gt; 1]">
        
        <session method="set" name="LANG" xpath="/Model/Request/Body/Fields/Field[@name = 'LANG']/@value"/>
        
    </when>
    <session method="get" name="LANG" xpath="/Model/System/SessionData"/>
    <session method="get" name="OriginalSID" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/System/SessionData/var[@name = 'OriginalSID' and string-length(.) &gt; 0]">
            
            <!-- OriginalSID already exists. Do Nothing -->
            
        </when>
        
        <otherwise>
            
            <!-- Set OriginalSID to SessionId -->
            
            <data method="remove" xpath="/Model/System/SessionData/var[@name = 'OriginalSID']"/>
            
            <session method="set" name="OriginalSID" xpath="/Model/System/SessionID"/>
            
            <session method="get" name="OriginalSID" xpath="/Model/System/SessionData"/>
            
        </otherwise>
        
    </choose>
    <when test="/Model/System/SessionData/var[@name = 'OriginalSID' and string-length(.) &gt; 0]">
        
        <!-- OriginalSID already exists. Do Nothing -->
        
    </when>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'EmailMessage' and string-length(@value) &gt; 1]">
            
            <session method="set" name="EmailMessage" xpath="/Model/Request/Body/Fields/Field[@name = 'EmailMessage']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'EmailMessage' and string-length(@value) &gt; 1]">
        
        <session method="set" name="EmailMessage" xpath="/Model/Request/Body/Fields/Field[@name = 'EmailMessage']/@value"/>
        
    </when>
    <session method="get" name="EmailMessage" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'TripDesc' and string-length(@value) &gt; 1]">
            
            <session method="set" name="TripDesc" xpath="/Model/Request/Body/Fields/Field[@name = 'TripDesc']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'TripDesc' and string-length(@value) &gt; 1]">
        
        <session method="set" name="TripDesc" xpath="/Model/Request/Body/Fields/Field[@name = 'TripDesc']/@value"/>
        
    </when>
    <session method="get" name="TripDesc" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = '.a' and @value = 'pLogoffWorker']">
            
            <session method="set" name="WORKER_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE']/@value"/>
            
            <session method="set" name="CLIENT_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = '.a' and @value = 'pLogoffWorker']">
        
        <session method="set" name="WORKER_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE']/@value"/>
        
        <session method="set" name="CLIENT_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE']/@value"/>
        
    </when>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE' and string-length(@value) &gt; 0]">
            
            <session method="set" name="CLIENT_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE']/@value"/>
            
            <session method="set" name="WORKER_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE' and string-length(@value) &gt; 0]">
        
        <session method="set" name="CLIENT_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE']/@value"/>
        
        <session method="set" name="WORKER_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE']/@value"/>
        
    </when>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE' and string-length(@value) &gt; 0]">
            
            <session method="set" name="WORKER_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE']/@value"/>
            
            <session method="set" name="CLIENT_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE' and string-length(@value) &gt; 0]">
        
        <session method="set" name="WORKER_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'WORKER_MODE']/@value"/>
        
        <session method="set" name="CLIENT_MODE" xpath="/Model/Request/Body/Fields/Field[@name = 'CLIENT_MODE']/@value"/>
        
    </when>
    <session method="get" name="CLIENT_MODE" xpath="/Model/System/SessionData"/>
    <session method="get" name="WORKER_MODE" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model[System/SessionData/var[@name = 'WORKER_MODE' and text() = '1'] and Request/Body/Fields/Field[@name = 'ClientList' and string-length(@value) &gt; 0]]">
            
            <session method="set" name="ClientId" xpath="/Model/Request/Body/Fields/Field[@name = 'ClientList']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model[System/SessionData/var[@name = 'WORKER_MODE' and text() = '1'] and Request/Body/Fields/Field[@name = 'ClientList' and string-length(@value) &gt; 0]]">
        
        <session method="set" name="ClientId" xpath="/Model/Request/Body/Fields/Field[@name = 'ClientList']/@value"/>
        
    </when>
    <session method="get" name="ClientId" xpath="/Model/System/SessionData"/>
    <session method="get" name="ClientCode" xpath="/Model/System/SessionData"/>
    <session method="get" name="WorkerId" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'ResetForm']">
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value">
                    
                    <session method="set" name="StartGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value">
                    
                    <session method="set" name="StartTab" xpath="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value and /Model/Request/Body/Fields/Field[@name = 'Start']/@value">
                    
                    <session method="set" name="SelectStartType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value"/>
                    
                    <data method="remove" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value">
                    
                    <session method="set" name="EndGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value">
                    
                    <session method="set" name="EndTab" xpath="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value and /Model/Request/Body/Fields/Field[@name = 'End']/@value">
                    
                    <session method="set" name="SelectEndType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value"/>
                    
                    <data method="remove" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']"/>
                    
                </when>
                
            </choose>
            
        </when>
        
        <otherwise>
            
            <choose>
                
                <when test="/Model/System/Form[Next = 'iTripPlanning']">
                    
                    <choose>
                        
                        <when test="/Model/Request/Body/Fields/Field[@name = 'StartGeo' and string-length(@value) &gt; 0]">
                            
                            <session method="set" name="StartGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value"/>
                            
                        </when>
                        
                    </choose>
                    
                    <choose>
                        
                        <when test="/Model/Request/Body/Fields/Field[@name = 'StartTab' and string-length(@value) &gt; 0]">
                            
                            <session method="set" name="StartTab" xpath="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value"/>
                            
                        </when>
                        
                    </choose>
                    
                    <choose>
                        
                        <when test="/Model/Request/Body/Fields/Field[@name = 'SelectStartType' and string-length(@value) &gt; 0]">
                            
                            <session method="set" name="SelectStartType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value"/>
                            
                        </when>
                        
                    </choose>
                    
                    <choose>
                        
                        <when test="/Model/Request/Body/Fields/Field[@name = 'EndGeo' and string-length(@value) &gt; 0]">
                            
                            <session method="set" name="EndGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value"/>
                            
                        </when>
                        
                    </choose>
                    
                    <choose>
                        
                        <when test="/Model/Request/Body/Fields/Field[@name = 'EndTab' and string-length(@value) &gt; 0]">
                            
                            <session method="set" name="EndTab" xpath="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value"/>
                            
                        </when>
                        
                    </choose>
                    
                    <choose>
                        
                        <when test="/Model/Request/Body/Fields/Field[@name = 'SelectEndType' and string-length(@value) &gt; 0]">
                            
                            <session method="set" name="SelectEndType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value"/>
                            
                        </when>
                        
                    </choose>
                    
                </when>
                
            </choose>
            
            <session method="get" name="StartGeo" xpath="/Model/System/SessionData"/>
            
            <session method="get" name="StartTab" xpath="/Model/System/SessionData"/>
            
            <session method="get" name="SelectStartType" xpath="/Model/System/SessionData"/>
            
            <session method="get" name="EndGeo" xpath="/Model/System/SessionData"/>
            
            <session method="get" name="EndTab" xpath="/Model/System/SessionData"/>
            
            <session method="get" name="SelectEndType" xpath="/Model/System/SessionData"/>
            
        </otherwise>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'ResetForm']">
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value">
                
                <session method="set" name="StartGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value">
                
                <session method="set" name="StartTab" xpath="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value and /Model/Request/Body/Fields/Field[@name = 'Start']/@value">
                
                <session method="set" name="SelectStartType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value"/>
                
                <data method="remove" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value">
                
                <session method="set" name="EndGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value">
                
                <session method="set" name="EndTab" xpath="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value and /Model/Request/Body/Fields/Field[@name = 'End']/@value">
                
                <session method="set" name="SelectEndType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value"/>
                
                <data method="remove" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']"/>
                
            </when>
            
        </choose>
        
    </when>
    <otherwise>
        
        <choose>
            
            <when test="/Model/System/Form[Next = 'iTripPlanning']">
                
                <choose>
                    
                    <when test="/Model/Request/Body/Fields/Field[@name = 'StartGeo' and string-length(@value) &gt; 0]">
                        
                        <session method="set" name="StartGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value"/>
                        
                    </when>
                    
                </choose>
                
                <choose>
                    
                    <when test="/Model/Request/Body/Fields/Field[@name = 'StartTab' and string-length(@value) &gt; 0]">
                        
                        <session method="set" name="StartTab" xpath="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value"/>
                        
                    </when>
                    
                </choose>
                
                <choose>
                    
                    <when test="/Model/Request/Body/Fields/Field[@name = 'SelectStartType' and string-length(@value) &gt; 0]">
                        
                        <session method="set" name="SelectStartType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value"/>
                        
                    </when>
                    
                </choose>
                
                <choose>
                    
                    <when test="/Model/Request/Body/Fields/Field[@name = 'EndGeo' and string-length(@value) &gt; 0]">
                        
                        <session method="set" name="EndGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value"/>
                        
                    </when>
                    
                </choose>
                
                <choose>
                    
                    <when test="/Model/Request/Body/Fields/Field[@name = 'EndTab' and string-length(@value) &gt; 0]">
                        
                        <session method="set" name="EndTab" xpath="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value"/>
                        
                    </when>
                    
                </choose>
                
                <choose>
                    
                    <when test="/Model/Request/Body/Fields/Field[@name = 'SelectEndType' and string-length(@value) &gt; 0]">
                        
                        <session method="set" name="SelectEndType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value"/>
                        
                    </when>
                    
                </choose>
                
            </when>
            
        </choose>
        
        <session method="get" name="StartGeo" xpath="/Model/System/SessionData"/>
        
        <session method="get" name="StartTab" xpath="/Model/System/SessionData"/>
        
        <session method="get" name="SelectStartType" xpath="/Model/System/SessionData"/>
        
        <session method="get" name="EndGeo" xpath="/Model/System/SessionData"/>
        
        <session method="get" name="EndTab" xpath="/Model/System/SessionData"/>
        
        <session method="get" name="SelectEndType" xpath="/Model/System/SessionData"/>
        
    </otherwise>
    <choose>
        
        <when test="/Model/System/Form[Next = 'iTripPlanning']">
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'StartGeo' and string-length(@value) &gt; 0]">
                    
                    <session method="set" name="StartGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'StartTab' and string-length(@value) &gt; 0]">
                    
                    <session method="set" name="StartTab" xpath="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'SelectStartType' and string-length(@value) &gt; 0]">
                    
                    <session method="set" name="SelectStartType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'EndGeo' and string-length(@value) &gt; 0]">
                    
                    <session method="set" name="EndGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'EndTab' and string-length(@value) &gt; 0]">
                    
                    <session method="set" name="EndTab" xpath="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value"/>
                    
                </when>
                
            </choose>
            
            <choose>
                
                <when test="/Model/Request/Body/Fields/Field[@name = 'SelectEndType' and string-length(@value) &gt; 0]">
                    
                    <session method="set" name="SelectEndType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value"/>
                    
                </when>
                
            </choose>
            
        </when>
        
    </choose>
    <when test="/Model/System/Form[Next = 'iTripPlanning']">
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'StartGeo' and string-length(@value) &gt; 0]">
                
                <session method="set" name="StartGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'StartGeo']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'StartTab' and string-length(@value) &gt; 0]">
                
                <session method="set" name="StartTab" xpath="/Model/Request/Body/Fields/Field[@name = 'StartTab']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'SelectStartType' and string-length(@value) &gt; 0]">
                
                <session method="set" name="SelectStartType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectStartType']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'EndGeo' and string-length(@value) &gt; 0]">
                
                <session method="set" name="EndGeo" xpath="/Model/Request/Body/Fields/Field[@name = 'EndGeo']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'EndTab' and string-length(@value) &gt; 0]">
                
                <session method="set" name="EndTab" xpath="/Model/Request/Body/Fields/Field[@name = 'EndTab']/@value"/>
                
            </when>
            
        </choose>
        
        <choose>
            
            <when test="/Model/Request/Body/Fields/Field[@name = 'SelectEndType' and string-length(@value) &gt; 0]">
                
                <session method="set" name="SelectEndType" xpath="/Model/Request/Body/Fields/Field[@name = 'SelectEndType']/@value"/>
                
            </when>
            
        </choose>
        
    </when>
    <session method="get" name="StartGeo" xpath="/Model/System/SessionData"/>
    <session method="get" name="StartTab" xpath="/Model/System/SessionData"/>
    <session method="get" name="SelectStartType" xpath="/Model/System/SessionData"/>
    <session method="get" name="EndGeo" xpath="/Model/System/SessionData"/>
    <session method="get" name="EndTab" xpath="/Model/System/SessionData"/>
    <session method="get" name="SelectEndType" xpath="/Model/System/SessionData"/>
    <context method="get" name="TravelerInformation/FixedRoute/InfoWeb/MyProfile/Enabled" xpath="/Model/System/Context"/>
    <context method="get" name="TravelerInformation/FixedRoute/InfoWeb/CurrentLocation/Enabled" xpath="/Model/System/Context"/>
    <context method="get" name="TravelerInformation/FixedRoute/Common/DefaultOptions/UseSolutionGenerator" xpath="/Model/System/Context"/>
    <context method="get" name="INFO/ATISEngine/IP" xpath="/Model/System/Context"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name='alias' and string-length(@value) &gt; 1 and not(substring(@value, 2) = 'Hangup') and not(substring(@value, 2, 8) = 'Transfer')]">
            
            <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = 'alias']/@value"/>
            
        </when>
        
        <when test="/Model/Request/Body/Fields/Field[@name='Alias' and string-length(@value) &gt; 1 and not(substring(@value, 2) = 'Hangup') and not(substring(@value, 2, 8) = 'Transfer')]">
            
            <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = 'Alias']/@value"/>
            
        </when>
        
        <when test="/Model/Request/Body/Fields/Field[@name='.a' and string-length(@value) &gt; 1 and not(substring(@value, 2) = 'Hangup') and not(substring(@value, 2, 8) = 'Transfer')]">
            
            <session method="get" name="Alias" xpath="/Model/System/SessionData"/>
            
            <!-- Only set Alias to '.a' if no Alias already exists in the session (Mostly used for IVR Callbacks that service calls markup only using '.a') -->
            
            <choose>
                
                <when test="/Model/System/SessionData/var[@name = 'Alias' and string-length(text()) = 0]">
                    
                    <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = '.a']/@value"/>
                    
                </when>
                
            </choose>
            
            <data method="remove" xpath="/Model/System/SessionData/var[@name = 'Alias']"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name='alias' and string-length(@value) &gt; 1 and not(substring(@value, 2) = 'Hangup') and not(substring(@value, 2, 8) = 'Transfer')]">
        
        <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = 'alias']/@value"/>
        
    </when>
    <when test="/Model/Request/Body/Fields/Field[@name='Alias' and string-length(@value) &gt; 1 and not(substring(@value, 2) = 'Hangup') and not(substring(@value, 2, 8) = 'Transfer')]">
        
        <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = 'Alias']/@value"/>
        
    </when>
    <when test="/Model/Request/Body/Fields/Field[@name='.a' and string-length(@value) &gt; 1 and not(substring(@value, 2) = 'Hangup') and not(substring(@value, 2, 8) = 'Transfer')]">
        
        <session method="get" name="Alias" xpath="/Model/System/SessionData"/>
        
        <!-- Only set Alias to '.a' if no Alias already exists in the session (Mostly used for IVR Callbacks that service calls markup only using '.a') -->
        
        <choose>
            
            <when test="/Model/System/SessionData/var[@name = 'Alias' and string-length(text()) = 0]">
                
                <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = '.a']/@value"/>
                
            </when>
            
        </choose>
        
        <data method="remove" xpath="/Model/System/SessionData/var[@name = 'Alias']"/>
        
    </when>
    <session method="get" name="Alias" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/System/SessionData/var[@name = 'Alias' and string-length(text()) = 0]">
            
            <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = '.a']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/System/SessionData/var[@name = 'Alias' and string-length(text()) = 0]">
        
        <session method="set" name="Alias" xpath="/Model/Request/Body/Fields/Field[@name = '.a']/@value"/>
        
    </when>
    <data method="remove" xpath="/Model/System/SessionData/var[@name = 'Alias']"/>
    <session method="get" name="Alias" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name='Mode' and string-length(@value)&gt;1 and not(@value='PerformTransfer')]">
            
            <session method="set" name="Mode" xpath="/Model/Request/Body/Fields/Field[@name='Mode']/@value"/>
            
        </when>
        
        <when test="/Model/Request/Body/Fields/Field[@name='mode' and string-length(@value)&gt;1 and not(@value='PerformTransfer')]">
            
            <session method="set" name="Mode" xpath="/Model/Request/Body/Fields/Field[@name='mode']/@value"/>
            
        </when>
        
        <when test="/Model/Request/Body/Fields/Field[@name='MODE' and string-length(@value)&gt;1 and not(@value='PerformTransfer')]">
            
            <session method="set" name="Mode" xpath="/Model/Request/Body/Fields/Field[@name='MODE']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name='Mode' and string-length(@value)&gt;1 and not(@value='PerformTransfer')]">
        
        <session method="set" name="Mode" xpath="/Model/Request/Body/Fields/Field[@name='Mode']/@value"/>
        
    </when>
    <when test="/Model/Request/Body/Fields/Field[@name='mode' and string-length(@value)&gt;1 and not(@value='PerformTransfer')]">
        
        <session method="set" name="Mode" xpath="/Model/Request/Body/Fields/Field[@name='mode']/@value"/>
        
    </when>
    <when test="/Model/Request/Body/Fields/Field[@name='MODE' and string-length(@value)&gt;1 and not(@value='PerformTransfer')]">
        
        <session method="set" name="Mode" xpath="/Model/Request/Body/Fields/Field[@name='MODE']/@value"/>
        
    </when>
    <session method="get" name="Mode" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'RouteWizard' and string-length(@value) &gt; 1]">
            
            <session method="set" name="RouteWizard" xpath="/Model/Request/Body/Fields/Field[@name = 'RouteWizard']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'RouteWizard' and string-length(@value) &gt; 1]">
        
        <session method="set" name="RouteWizard" xpath="/Model/Request/Body/Fields/Field[@name = 'RouteWizard']/@value"/>
        
    </when>
    <session method="get" name="RouteWizard" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'RouteStop' and string-length(@value) &gt; 1]">
            
            <session method="set" name="RouteStop" xpath="/Model/Request/Body/Fields/Field[@name = 'RouteStop']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'RouteStop' and string-length(@value) &gt; 1]">
        
        <session method="set" name="RouteStop" xpath="/Model/Request/Body/Fields/Field[@name = 'RouteStop']/@value"/>
        
    </when>
    <session method="get" name="RouteStop" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'PlaceInterest' and string-length(@value) &gt; 1]">
            
            <session method="set" name="PlaceInterest" xpath="/Model/Request/Body/Fields/Field[@name = 'PlaceInterest']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'PlaceInterest' and string-length(@value) &gt; 1]">
        
        <session method="set" name="PlaceInterest" xpath="/Model/Request/Body/Fields/Field[@name = 'PlaceInterest']/@value"/>
        
    </when>
    <session method="get" name="PlaceInterest" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'LocationLookup' and string-length(@value) &gt; 1]">
            
            <session method="set" name="LocationLookup" xpath="/Model/Request/Body/Fields/Field[@name = 'LocationLookup']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'LocationLookup' and string-length(@value) &gt; 1]">
        
        <session method="set" name="LocationLookup" xpath="/Model/Request/Body/Fields/Field[@name = 'LocationLookup']/@value"/>
        
    </when>
    <session method="get" name="LocationLookup" xpath="/Model/System/SessionData"/>
    <choose>
        
        <when test="/Model/Request/Body/Fields/Field[@name = 'CallStart' and string-length(@value) &gt; 0]">
            
            <session method="set" name="CallStart" xpath="/Model/Request/Body/Fields/Field[@name = 'CallStart']/@value"/>
            
        </when>
        
    </choose>
    <when test="/Model/Request/Body/Fields/Field[@name = 'CallStart' and string-length(@value) &gt; 0]">
        
        <session method="set" name="CallStart" xpath="/Model/Request/Body/Fields/Field[@name = 'CallStart']/@value"/>
        
    </when>
    <trace file="TRACE_Request.xml"/>
    <loop while="/Model/System/Form/Next/text()">
        
        <set_current_form/>
        
        <try_catch>
            
            <run xpath="/Model/System/Form/File/text()"/>
            
        </try_catch>
        
        <!-- use proper form for security exceptions  -->
        
        <choose>
            
            <when test="/Model/System/Exception/Hiwire_HiwireException/Class[text()='SecurityException']">
                
                <change_form name="SecurityError"/>
                
                <data method="remove" xpath="/Model/System/Exception/Hiwire_HiwireException"/>
                
            </when>
            
            <when test="/Model/System/Exception/Hiwire_HiwireException">
                
                <change_form name="SystemError"/>
                
                <set_current_form/>
                
                <exit_loop/>
                
            </when>
            
        </choose>
        
    </loop>
    <set_current_form/>
    <try_catch>
        
        <run xpath="/Model/System/Form/File/text()"/>
        
    </try_catch>
    <run xpath="/Model/System/Form/File/text()"/>
    <trace file="TRACE_iHelp.xml"/>
    <choose>
        
        <when test="/Model/System/Exception/Hiwire_HiwireException/Class[text()='SecurityException']">
            
            <change_form name="SecurityError"/>
            
            <data method="remove" xpath="/Model/System/Exception/Hiwire_HiwireException"/>
            
        </when>
        
        <when test="/Model/System/Exception/Hiwire_HiwireException">
            
            <change_form name="SystemError"/>
            
            <set_current_form/>
            
            <exit_loop/>
            
        </when>
        
    </choose>
    <when test="/Model/System/Exception/Hiwire_HiwireException/Class[text()='SecurityException']">
        
        <change_form name="SecurityError"/>
        
        <data method="remove" xpath="/Model/System/Exception/Hiwire_HiwireException"/>
        
    </when>
    <when test="/Model/System/Exception/Hiwire_HiwireException">
        
        <change_form name="SystemError"/>
        
        <set_current_form/>
        
        <exit_loop/>
        
    </when>
    <try_catch>
        
        <transform xpath="/Model/System/Form/UI/text()"/>
        
    </try_catch>
    <transform xpath="/Model/System/Form/UI/text()"/>
    <choose>
        
        <when test="/Model/System/Exception/Hiwire_HiwireException">
            
            <change_form name="SystemError"/>
            
            <set_current_form/>
            
            <transform xpath="/Model/System/Form/UI/text()"/>
            
        </when>
        
    </choose>
    <when test="/Model/System/Exception/Hiwire_HiwireException">
        
        <change_form name="SystemError"/>
        
        <set_current_form/>
        
        <transform xpath="/Model/System/Form/UI/text()"/>
        
    </when>
    <change_form name="SystemError"/>
    <set_current_form/>
    <transform xpath="/Model/System/Form/UI/text()"/>
</Commands>