English English Spanish EspañolKorea한국어
Straker»Company»Blog»2005» Webservices and ColdfusionMX 7

Webservices and ColdfusionMX 7

When working with webservices in CFMX 7, case sensistivity is critical. So when you are invoking a webservice on CFMX7, make sure that the url to the webservice has the correct casing of folder and file names: Spot the difference:
<!--- Incorrect casing --->
<cfinvoke webservice=" http://localhost/cmm_shadomx/app_templates/objects/CaseStudies/Casestudy.cfc?wsdl" method="getCase" returnvariable="qCase" >
   <cfinvokeargument name="id" value="#request.getpageobject.page_title#" />
</cfinvoke>
<!--- Correct casing --->
<cfinvoke webservice=" http://localhost/cmm_shadomx/app_templates/objects/CaseStudies/CaseStudy.cfc?wsdl" method="getCase" returnvariable="qCase" >
   <cfinvokeargument name="id" value="#request.getpageobject.page_title#" />
</cfinvoke>
Notice the name of the file is "CaseStudy.cfc" not "Casestudy.cfc". The first call will throw CF errors. Jrun4 ships with a useful utility to troubleshoot wsdl files: jrun4/bin/wsdl2java.exe


Comments

There are no comments for this page as yet.

Add a comment