Title:
0xFFFD character returned instead of undefined when accessing soap webservice
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Stephen Baker / Stephen Baker (Stephen Baker)
Created: 06/19/2014
Components: Web Services, General
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description:
When consuming a soap webservice which returns a complex structure containing a float. If the float is nil in ColdFusion 9 getTheFloat() would return an explicit undefined. In ColdFusion 10 the same code returns the unicode replacement character.
Steps to Reproduce:
Using the following code:
<CFSET application.ermsInternalWS = CreateObject('webservice', 'http://localhost:8888/ErmsInternal/ErmsInternal.svc?wsdl')>
<CFSET geo = application.ermsInternalWS.GeocodeAddress('', '', '', '', 55, true)>
<CFSET lat = geo.getLatitude()>
<CFDUMP var="#lat#">
<CFDUMP var="#Asc(lat)#">
ErmsInternal.svc is a WCF webservice which returns the response pasted here: http://pastebin.com/ywTJymXp
Actual Result:
Asc(lat) = 65533
Expected Result:
lat should be "undefined"
Any Workarounds:
Test IsNull(lat) for CF9 and IsNumeric(lat) for CF10.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3778682
External Customer Info:
External Company:
External Customer Name: TheCycoONE
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows Server 2008 R2
ColdFusion 10 64-bit
Attachments:
- December 18, 2014 00:00:00: 1_nulltest.cfm
Comments: