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" >
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
You could just invoke the WSDL file directly, by URL. I did something like
<cffile action="read" file="#expandpath('books.xml')#" variable="bookXml">
<cfinvokeargument name="xml" value="#bookXml#">