微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。