Title:
Bug 85002:(Watson Migration Closure)ColdFusion generates incorrect WSDL when style="document" and I there is more than 1 array type in the response
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): MrSmith MrSmith / MrSmith MrSmith (MrSmith MrSmith)
Created: 11/11/2010
Components: Web Services
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
ColdFusion generates incorrect WSDL when style="document" and I there is more than 1 array type in the response. Both arrays will have the type "tns1:ArrayOf_xsd_anyType" in the generated WSDL. When a single array is present the type is the correct one.
Method:
ws.cfc
<cfcomponent output="no" style="document">
<cffunction name="getProducts" access="remote" output="no" returntype="response1">
</cffunction>
</cfcomponent>
response1.cfc
<cfcomponent>
<cfproperty name="errors" type="array">
<cfproperty name="products" type="Component[]">
</cfcomponent>
In the generated wsdl (ws.cfc?wsdl) the 2 arrays are of the same type:<element name="errors" nillable="true" type="tns1:ArrayOf_xsd_anyType"/><element name="products" nillable="true" type="tns1:ArrayOf_xsd_anyType"/>If I remove the errors array from return1.cfc then the WSDL will contain a type for array or Components. But when I add the errors property both types are destroyed.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3042731
External Customer Info:
External Company:
External Customer Name: MrSmith MrSmith
External Customer Email: 3CBD0ACC468BF68C992015C2
External Test Config: 11/11/2010
Attachments:
Comments: