• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

296

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
Community Expert ,
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>

Votes

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
Resources
Documentation