Wednesday, August 6, 2014

Problems with WSDL files in Coldfusion 11 using XSD's or other external files

Another gotcha when using externals WSDL files in Coldfusion 11 webservices: you can not use relative references in the files, all references should be absolute:

Will not work anymore:
<xsd:include schemaLocation="somefile.xsd" />

Should be:
<xsd:include schemaLocation="http://www.somesite.com/somefile.xsd" />

Publishing webservices in ColdFusion 11 in old Axis version (webservice gives an error after upgrading coldfusion)

ColdFusion 11 has a new axis version. This means that webservices are now published in AXIS2. This should not give too much problems unless you have written the WSDLs yourself. The easiest fix is to tell Coldfusion that this is an older version by adding one element in the component object (or cfcomponent tag): wsversion = "1". That's it!