400 是你请求的页面没找到。你确认一下你的url, 放到ie里面手工运行看看!

解决方案 »

  1.   

    我是用wsdl2java工具生成的代码,url也没有错http://61.4.191.228:8080/WfxWebService.asmxcmd: java org.apache.axis2.wsdl.WSDL2Java -uri http://61.4.191.228:8080/WfxWebService.asmx?wsdlTest.java代码
    import org.tempuri.WfxWebServiceStub;public class Test {
    /**
     * @param args
     */
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    try {
    WfxWebServiceStub stock=new WfxWebServiceStub();
    WfxWebServiceStub.Test param=new WfxWebServiceStub.Test();
    WfxWebServiceStub.TestResponse response=stock.Test(param);
    System.out.println(response.getTestResult());
    } catch (java.rmi.RemoteException remoteException) {
    remoteException.printStackTrace();
    }
    }
    }
    Test.java结束我用axis1.4生成的代码就没问题
    java2000_net再帮我看看吧,谢谢