Copy link to clipboard
Copied
For our CF 11 ColdFusion webservice, the ColdFusion generated WSDL is generating wrong targetNamespace value. To get past this, we saved the WSDL with correct targetNamespace value in server and referred to it in code as:
<cfcomponent wsdlfile = "test.wsdl" >
<cffunction ...>
</cffunction>
</cfcomponent>
Here test.wsdl is saved in the same folder as the component and so I am referring to it just by filename and am not including the full path.
Is this the right way to refer to pre-defined wsdl file? I am now getting HTTP 503 error when I try to browse to the component.cfc?wsdl
Thanks.
Copy link to clipboard
Copied
You could just invoke the WSDL file directly, by URL. I did something like
<cffile action="read" file="#expandpath('books.xml')#" variable="bookXml">
<cfinvoke
webservice="http://localhost:8500/workspace/cf11_projects/ws_test/books.wsdl"
refreshwsdl="true"
method="getBooks"
returnvariable="titles_authors">
<cfinvokeargument name="xml" value="#bookXml#">
</cfinvoke>