代码之家  ›  专栏  ›  技术社区  ›  Kip

ColdFusion无法生成WSDL

  •  1
  • Kip  · 技术社区  · 15 年前

    我无法让Web服务在ColdFusion中工作。这在我的开发服务器上工作得很好,但是当我把它交给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 回复  |  直到 15 年前
        1
  •  2
  •   Stephen Moretti    15 年前

    我刚刚在我的ColdFusion 8(8,0,1195765)和ColdFusion 9上试用了您的CFC,并正确返回了WDSL定义。

    我建议检查质量保证服务器是否设置正确,目标服务定义是否未被删除/损坏/更改。这篇文章可能会有所帮助 http://kb2.adobe.com/cps/182/tn_18271.html

        2
  •  0
  •   Andrei Sfat systemfreund    14 年前

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

    如果您使用的是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>