ColdFusion Web 服务在调用语句时突然抛出错误

问题描述

我在尝试学习时创建了 3 个 ColdFusion Web 服务。他们在星期四工作得很好,然后他们都在星期五的 invoke 语句中抛出了错误。你应该只调用一次吗?

这里是测试服务(hello.cfc):

<cfcomponent> 
<cffunction name="helloWorld" returnType="string" access="remote">
<cfreturn "Hello World!">
</cffunction> 
</cfcomponent> 

这是调用(hello.cfm):

<cfset wsURL = "https://myurl/cfwack/4/hello.cfc?wsdl">
<cfinvoke
  webservice = "#wsURL#"
  method = "helloWorld"
  returnVariable = "result">
<cfoutput> <H1> #result# </H1></cfoutput>

错误转储:

AxisFault faultCode: {schemas.xmlsoap.org/soap/envelope}Server.userException faultSubcode: 
faultString: org.xml.sax.SAXParseException; Premature end of file. 
faultActor: faultNode: faultDetail: {xml.apache.org/axis}stackTrace:org.xml.sax.SAXParseException; Premature end of file. at

org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(UnkNown Source) at org
.apache.xerces.util.ErrorHandlerWrapper.fatalError(UnkNown Source) at org
.apache.xerces.impl.XMLErrorReporter.reportError(UnkNown Source) at org
.apache.xerces.impl.XMLErrorReporter.reportError(UnkNown Source) at

org.apache.xerces.impl.XMLErrorReporter.reportError(UnkNown Source) at org
.apache.xerces.impl.XMLVersionDetector.determineDocVersion(UnkNown Source) at org
.apache.xerces.parsers.XML11Configuration.parse(UnkNown Source) at org
.apache.xerces.parsers.XML11Configuration.pa... 

The specific sequence of files included or processed is: D:\HTTP\cfwack\4\hello.cfm,line: 6

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)