ColdFusion : create a wsdl without any complex type included

蓝咒 提交于 2019-12-12 22:12:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!