tracker issue : CF-4094858

select a category, or use search below
(searches all categories and all time range)
Title:

Issue with SOAP response using custom wsdfile

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Christian Polintan / Christian Polintan (Christian Polintan)

Created: 12/02/2015

Components: Web Services

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Trivial / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:  
SOAP Response using custom wsdlfile returns PerformInquiryReturn instead of PerformInquiryResult as defined in the custom aaa.wsdl file

Steps to Reproduce:
Put attached index.cfm, aaa.cfc, and aaa.wsdl files in a folder and run index.cfm in a browser

Actual Result:
PerformInquiryReturn is returned in the XML with a value of Doe, John


Expected Result:
Expect it to return PerformInquiryResult  with a value of Doe, John as defined in the aaa.wsdl file

Any Workarounds:
None

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4094858

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: Christian Polintan
External Customer Email:  
External Test Config: My Hardware and Environment details:

Windows Server R2 64-bit

ColdFusion 10

Attachments:

  1. December 03, 2015 00:00:00: 1_aaa.zip

Comments:

I can confirm that this is also an issue in later versions of ColdFusion. I shall now notify the ColdFusion Team.
Comment by External U.
5175 | December 06, 2015 04:55:34 AM GMT
During testing, I got it to work in certain cases. Enough reason to continue testing. Will report results.
Comment by External U.
5176 | December 06, 2015 06:58:49 AM GMT
I have been able to reproduce the issue in the current ColdFusion version, and have reported it to the ColdFusion prerelease program (Bug ID CF-4096292), attributing it to Christian Polintan. The details follow: 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"
Comment by External U.
5177 | December 06, 2015 08:29:47 AM GMT
I have just been notified by Priyank Shrivastava that this is now being called a "feature enhancement so it can only be fix in future release." Is this true??? Severely disappointed in Adobe for playing word games to avoid fixing what they have already acknowledged is a bug. Status ToFix Reason BugVerified
Comment by External U.
5178 | January 20, 2016 04:57:48 PM GMT