CFComponent wsdlfile attribute not working

New Here ,
Jun 26, 2015 Jun 26, 2015

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.

Views

256

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 27, 2015 Jun 27, 2015

Copy link to clipboard

Copied

LATEST

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines