从这句"Redirect requested but followRedirects is disabled"看来,是因为重定转到的资源不可用,估计是服务提供方的问题。

解决方案 »

  1.   

    可是为什么用axis调用就可以的呢?
      

  2.   

    there are two problems with this. First, you can't control followRedirects
    from XFire, and second (worse), HttpClient does not support redirects for
    POST and GET according to<http://jakarta.apache.org/httpcomponents/httpclient-3.x/redirects.html>We also ran into this problem and solved it by creating the HttpClient instance
    used by XFire ourselves. The idea is to override the executeMethod() in
    order to handle redirects.
      

  3.   

    http请求中参数没有设置 content-length属性