Question
Webservice call not working any more in CF 2016
I have been migrating some old ColdFusion MX 7 applications to CF2016. I am currently stuck on a code which is calling a webservice. It works without any error in MX7 but fails to find the Web service operation in CF2016.
Below is how the code is written in MX7:
<cfscript>
//Printer validation
printername = structNew() ;
printername.pid = "1221";
//printername.command = "PRINTERS"&#url.branch_loc#;
printername.command ="PRINTERS185";
//printername.command = "PRINTERSALL";
printername.locale = "en-CA";
Application.UserWebService = CreateObject("webservice","http://weburl:9115/wsdl/WWS001.wsdl");
printerdtls = Application.UserWebService.WWS001Operation(printername);
printerdtlsreq = printerdtls.TABLEOUT;
isprntrvalid="no";
for(i=1;i LTE ArrayLen(printerdtlsreq);i=i+1)
{
tempprntrData = UCase(printerdtlsreq[i].TNAME);
//writeOutput(tempprntrData & "<bR />");
}
writeoutput(#ArrayLen(printerdtlsreq)#);
END;
</cfscript>
I get list of Printers like : PRTDEL
However while running the same code in CF2016 I get the following error:
Cannot perform web service invocation WWS001Operation.
While calling using cfinvoke I get the error:
Web service operation WWS001Operation with parameters {wws001request.command={PRINTERS185},wws001request.pid={1221}} cannot be found.
Not able to find any work around for this.
