兄弟姐妹们帮看下啊,我的axis2 异步调用获取不到返回值。
handler 和stub是自动生成的
server端是C#写的[WebMethod(Description = "huo xing ce shi")]
        public string HuoXing(string name)
        {
            if (!string.IsNullOrEmpty(name))
                return name;
            else
                return "huoxing";
        }
客户端是java写的public static void huoXing()throws AxisFault,RemoteException,IOException{

WSCallbackHandler callbackHandler=new WSCallbackHandler(){
public void receiveResulthuoXing(HuoXingResponse result){

System.out.println("火星归来");
System.out.println(result.getHuoXingResult());

}
  public void receiveErrorhuoXing(java.lang.Exception e) {
  System.out.println(e.getMessage());
            }
};
WSStub.HuoXing huo=new WSStub.HuoXing();
WSStub stub=new WSStub();
ServiceClient client=stub._getServiceClient();

client.engageModule("addressing");

Options options = client.getOptions();
options.setTimeOutInMilliSeconds(1 * 60 * 1000);

options.setUseSeparateListener(true);
client.setOptions(options);
stub.starthuoXing(huo, callbackHandler);

System.out.println("end..");
}客户端输出
=============
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisOperation).
log4j:WARN Please initialize the log4j system properly.
end..
=============
输出end..后 程序卡住了,一直获取不到返回值。
server端我跳试过了,能被client掉到的