【发布时间】:2011-03-02 10:28:31
【问题描述】:
在 CF 9.01、Windows Web Server 2008 R2 上,Web 服务已停止运行 here,因此我正在尝试找出问题所在。我认为问题可能是在我应用 9.01 修补程序时开始的。
我在服务器上添加了一个 test.cfc
<cfcomponent output="false">
<cffunction
name = "echoString"
output = "no"
access = "remote" returntype="any">
<cfargument required="true" name="inputString" type="string"/>
<cfreturn arguments.inputString>
</cffunction>
</cfcomponent>
并用
调用它<cfinvoke webservice="https://nww.somedomain.nhs.uk/cfcs/test.cfc?wsdl"
method="echoString" returnvariable="returnedString">
<cfinvokeargument name="inputString" value="test string 2">
</cfinvoke>
并获取字符串响应,但在 cf 管理员中未添加 Web 服务 当我第一次按照我的想法调用 Web 服务时。
除了重新安装 CF 或尝试手动回滚之外,请提供有关问题或如何测试的任何线索?
我在 9,0,1,274733 上。 https不是我认为的问题。首先它工作正常,然后没有更改代码它停止了。其次,我对 test.cfc 的测试调用在 https 上按预期工作。
如果我直接在浏览器中点击 https://nww.somedomain.nhs.uk/cfcs/test.cfc?wsdl(有效)或我的问题 cfc https://nww.somedomain.nhs.uk/cfcs/providerapi.cfc?wsdl,它们都会正确显示 XML 详细信息。
但是,调用任一 CFC 不会将它们添加到管理员中的活动 Web 服务列表中。
我将“echostring”方法粘贴到我的问题 CFC (providerapi.cfc) 并尝试调用该方法,但出现“找不到 web 服务”错误。就像providerapi.cfc被缓存了一样,但是我在管理员中看不到删除它。
【问题讨论】: