Title:
[ANeff] Bug for: <cfinvokeargument omit=""> has no "supported" script equivalent (tag-to-script conversion failure)
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 12/08/2014
Components: Web Services
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 1
<cfinvokeargument> has no "supported" script equivalent, therefore nillable arguments cannot be passed to a web service using cfscript in a "supported" way.
Repro:
MyCFC.cfc
---------
component {remote string function myFunction(required string arg1, string arg2="b") {return ARGUMENTS.arg2;}}
index.cfm
---------
<!--- Tag version --->
<cfinvoke webservice="http://www.domain.com/MyCFC.cfc?wsdl" method="myFunction" returnvariable="myResult" arg1="a">
<cfinvokeargument name="arg2" omit="yes">
</cfinvoke>
<cfdump var="#myResult#" /><!--- Returns b (good) --->
<!--- Script version --->
<cfscript>
cfinvoke(webservice="http://www.domain.com/MyCFC.cfc?wsdl", method="myFunction", returnvariable="myResult", arg1="a") {
cfinvokeargument(name="arg2", omit=true);
}
writeDump(myResult);//Returns b (good)
</cfscript>
Both the tag and script versions work, but Adobe says the script version isn't "supported". cfinvoke()/cfinvokeargument() should be "supported" (and, thus, #3863516 should be marked Closed/Fixed).
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3864383
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: