ColdFusion无法生成WSDL

时间:2010-02-19 15:13:53

标签: web-services coldfusion axis

我无法在ColdFusion中使用Web服务。这在我的开发服务器上运行得很好,但是当我把它交给QA时,他们在服务器上收到了这个错误。两者都运行ColdFusion 8.0.1.195765。是否有一些我错过的系统设置会导致这种行为?

我非常简单的CFC文件:

<cfcomponent output="false">

  <cffunction name="Test" access="remote" returntype="any">
    <cfreturn />
  </cffunction>

</cfcomponent>

当我转到http://www.example.com/zSoapTest.cfc?wsdl时,我收到以下错误:

AXIS error

Could not generate WSDL!

There is no SOAP service at this location

Fault - The AXIS engine could not find a target service to invoke!  targetService is null

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.NoService
 faultSubcode: 
 faultString: The AXIS engine could not find a target service to invoke!  targetService is null
 faultActor: 
 faultNode: 
    {http://xml.apache.org/axis/}stackTrace:The AXIS engine could not find a target service to invoke!  targetService is null
    at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:475)
    at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...

我已经完成了一些网络搜索并找到this method to flush the web services cache,但这对我不起作用。我认为它甚至没有WSDL的缓存,我认为它在此之前就失败了。

2 个答案:

答案 0 :(得分:2)

我刚刚在我的ColdFusion 8(8,0,1,195765)和ColdFusion 9上尝试了你的cfc并且正确地返回了wdsl定义。

我建议检查QA服务器是否已正确设置,目标服务定义是否已删除/损坏/更改。本文可能对http://kb2.adobe.com/cps/182/tn_18271.html

有所帮助

答案 1 :(得分:0)

我有类似的问题,我发现了

如果您正在使用jrun,那么您还需要编辑 的 C:\ ColdFusion8 \ wwwroot的\ WEB-INF \ JRUN-web.xml中

改变

<enable-jrun-web-services>FALSE<enable-jrun-web-services>

<enable-jrun-web-services>TRUE<enable-jrun-web-services>