能中的Web服务CFSCRIPT创建Web服务?冷聚变创建使用<strong>新</strong>运营商的“新”运营商
与之相对的CreateObject ..
Application.UserWebService = CreateObject("webservice", "http://WebServiceURL/WebServices/UserService.asmx?WSDL");
能中的Web服务CFSCRIPT创建Web服务?冷聚变创建使用<strong>新</strong>运营商的“新”运营商
与之相对的CreateObject ..
Application.UserWebService = CreateObject("webservice", "http://WebServiceURL/WebServices/UserService.asmx?WSDL");
在CF文档看,我看到唯一的一个被使用CreateObject ..
<cfscript>
ws = CreateObject("webservice",
"http://www.xmethods.net/sd/2001/TemperatureService.wsdl");
xlatstring = ws.getTemp(zipcode = "55987");
writeoutput("The temperature at 55987 is " & xlatstring);
</cfscript>
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-78b4.html
号的new
运算符仅适用于组件,并且Web服务不是组件。
FWIW,你可以看看{cfroot}\CustomTags\com\adobe\coldfusion
目录里面的内容,了解哪些核心对象是作为组件实现的。
这听起来是正确的,谢谢。 – MPaul