Title:
Web service based on CFC and wsdlfile fails to return string; produces error instead
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): A. Bakia / A. Bakia (A. Bakia)
Created: 03/09/2016
Components: Web Services
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: Alpha3_v12 /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem Description: I created a web service CFC which includes just one function. The CFC has attribute wsdlfile, whose value is a relative URL. I experiment interchangeably with values of 1 and 2 for the wsversion attribute. The function has no argument, and has string returntype.
With wsversion=1, I get the error: "org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException".
With wsversion=2, I get the error: "coldfusion.runtime.UndefinedVariableException: Variable MYRETURNVAR is undefined. " (Here, MYRETURNVAR is the variable to which I assign the function's return value).
Steps to Reproduce: (1) Copy the attached files (wsTest.cfm and testComp.cfc) to a directory under the Coldfusion webroot.
(2) Open testComp.cfc in a text editor, temporarily delete the attribute wsdlfile of the cfcomponent tag and save.
(3) Open in the browser the URL to testComp.cfc?wsdl. For example, mine is http://127.0.0.1:8500/workspace/cfRaijin/testComp.cfc?wsdl . Coldfusion generates, as a result, the WSDL file for the web service. It is an XML file.
(4) Save the contents of the XML file, within the same directory, as testComp.wsdl.
(5) Reopen testComp.cfc in the editor and restore the attribute wsdlfile of the cfcomponent tag to the value "testComp.wsdl".
(6) Open in the browser the URL to wsTest.cfm. For example, mine is http://127.0.0.1:8500/workspace/cfRaijin/wsTest.cfm .
(7) In testComp.cfc, change the value of the attribute wsversion from 1 to 2.
(8) Again open in the browser the URL to wsTest.cfm.
Actual Result:
With wsversion=1, you will get the error: "org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException".
With wsversion=2, you will get the error: "coldfusion.runtime.UndefinedVariableException: Variable MYRETURNVAR is undefined. " (Here, MYRETURNVAR is the variable to which the function's return value is assigned).
Expected Result: No error, and MYRETURNVAR displayed as the string "Doe, John"
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126521
External Customer Info:
External Company: (withheld for privacy)
External Customer Name: A. Bakia
External Customer Email: A.BAKIG@CHELLO.NL
External Test Config:
Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha3_v12\4096292\error_message_with_wsversion1.html
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha3_v12\4096292\error_message_with_wsversion2.html
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha3_v12\4096292\wsTest.cfm
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha3_v12\4096292\testComp.wsdl
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha3_v12\4096292\testComp.cfc
Attachments:
- June 16, 2016 00:00:00: 1_wsversion1.zip
- June 16, 2016 00:00:00: 2_wsversion2.zip
Comments: