Skip to main content
Chakri
Participant
June 26, 2015
Question

CFComponent wsdlfile attribute not working

  • June 26, 2015
  • 1 reply
  • 355 views

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.

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    June 27, 2015

    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>