问题
I have to create a wsdl webservice using ColdFusion to be used by an 'external' tool.
The problem I am facing is that this external tool doesn't accept webservices that uses complex types (the wsdl should only get and return simple values as string or integer, but no array, structure or obect).
Seems that coldfusion automatically adds some paart using complex types withing the wsdl.
My question is : Is there a way to generate a wsdl webservice in ColdFusion that wouldn't include any complex type part (and so be usable with my 'external' tool)
Thanks a lot
回答1:
You can use the wsdlfile
attribute of the cfcomponent
tag to use a pre-defined WSDL file instead of using the WSDL file generated by ColdFusion.
From the Producing WSDL files page:
For complete control of the WSDL, advanced users can specify the cfcomponent wsdlFile attribute to use a predefined WSDL file.
And from the cfcomponent documentation page:
wsdlfile - Optional - A properly formatted WSDL file to be used instead of WSDL generated by ColdFusion.
来源:https://stackoverflow.com/questions/17167440/coldfusion-create-a-wsdl-without-any-complex-type-included