0 Replies Latest reply on Dec 12, 2007 10:49 AM by StokeyTCI

    Test URL

    StokeyTCI Level 1
      Hi,

      I have 2 AS/400's that host web services. During our daily update one of the AS/400's goes down while the other stays up. Is there a way to check to see which 400 is up.

      Basically if the main box is down due to update I want to fall back to the secondary.

      ie
      <cfif isconnection available = yes>
      <cfhttp url="mainbox:8080/ws/servlet/aprodreqinv?wsdl" result="cfhttpResult" method="post" resolveurl="NO" useragent="Axis/1.1">
      <cfhttpparam type="header" name="SOAPAction" value="mainbox:8080/ws/servlet/aprodreqinv?wsdl##execute"> <cfhttpparam type="XML" name="body" value="#SoapRequest#">
      </cfhttp>

      <cfelse>
      <cfhttp url=" http://backupbox:8080/ws/servlet/aprodreqinv?wsdl" result="cfhttpResult" method="post" resolveurl="NO" useragent="Axis/1.1">
      <cfhttpparam type="header" name="SOAPAction" value="## http://backupbox:8080/ws/servlet/aprodreqinv?wsdl##execute"> <cfhttpparam type="XML" name="body" value="#SoapRequest#">
      </cfhttp>
      </cfif>