IsViaSoap()
Last updated August 28, 2003
Version: 1 | Requires: CF6 | Library: UtilityLib
Description:
Returns true if the curent request is SOAP based.
Return Values:
Returns a boolean.
Example:
<cfoutput>Is this request a Soap request? #isViaSoap()#</cfoutput>
Parameters:
No arguments.
Full UDF Source:
<!---
Returns true if the curent request is SOAP based.
@return Returns a boolean.
@author Ben Forta (ben@forta.com)
@version 1, August 28, 2003
--->
<cffunction name="isViaSoap" returnType="boolean" output="no">
<!--- Get current message context --->
<cfset var ctx = createObject("java", "org.apache.axis.MessageContext").getCurrentContext()>
<!--- Invoke (cheap) method to see if it is null --->
<cftry>
<cfset ctx.isclient()>
<cfcatch type="any">
<cfreturn false>
</cfcatch>
</cftry>
<cfreturn true>
</cffunction>
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016