还有 导入import org.codehaus.xfire.XFireFactory;等时提示
The import org.codehaus cannot be resolved
是怎么回事?

解决方案 »

  1.   

    不知道你是用什么工具做的
    The import org.codehaus cannot be resolved 
    这个是你没倒入xfire的包
    建议你用myeclipse做,比较简单,在myeclipse的帮助里边有现成的例子
      

  2.   

    恩,我是用myeclipse做的,第二个问题应该是如你所说的。
    但第一个问题能给我些指点么?
    看了些XFIRE的例子,我觉得很奇怪,WS不就是给出一个web服务的URL就可以直接调用服务的么,为什么还要import web服务的接口文件?(如 之前import hello.Ihelloclient; 后来创建 Ihelloclient srvc = (Ihelloclient)factory.create(srvcModel, helloWorldURL); )
    通常我们只知道web服务的URL,这个接口文件的文件名又是如何得知的呢?是通过URL地址推测出来的么?
      

  3.   

    我的问题是要调用http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?WSDL
    这个网站的服务,
    报错:
    返回了服务的模型wsClient.callWebService():EXCEPTION:org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: 服务器未能识别 HTTP 头 SOAPAction 的值: 。2011-5-12 8:59:40 org.apache.catalina.core.StandardWrapperValve invoke这个是C#的服务 我该怎么用java调用呢? 网上的例子都是本地调用....而且没有这样2个相互调用