ColdFusion MX does not support explicit SOAP exceptions


In ColdFusion MX, SOAP error messages can be difficult to decipher because the actual exception error is surrounded by irrelevant information.


ColdFusion MX does not handle explicit SOAP exceptions.

Solution or Workaround

Use the following code in the CFM files. This code removes unwanted error messages and displays only the explicit SOAP exception in the Web browser. This code is written for Cold Fusion MX 7.1, but also works with other versions.


<!--- Invoke webservice code here..... --->

<cfcatch type = "any">
<cfset errMessage = #cfcatch.detail#>

<cfset soapErrStart = #findnocase("faultString",errMessage)# >
<cfset soapErrEnd = #find("faultActor",errMessage,soapErrStart)# >
<cfif soapErrStart gt 0 >
<br><font color=red> * #mid(errMessage,soapErrStart,(soapErrEnd-soapErrStart))# </font><br><br>
<br><font color=red> * #errMessage# </font><br><br>


Article ID:000006392

  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic