Package org.apache.axis.client.async

Examples of org.apache.axis.client.async.AsyncCall.invoke()


      }
      try {
        mutex.acquire();
      } catch (Exception e) {}
      setAsyncStatus(ASYNC_RUNNING);
      asyncCall.invoke(msgContext,listener); // this MUST be non-blocking
    }

    public final Object waitForReturnValue()
      throws Throwable {
        return waitForReturnValue(Long.MAX_VALUE);
View Full Code Here


        call.setUseSOAPAction(true);
        call.setSOAPActionURI("capeconnect:GlobalWeather:StationInfo#listCountries");
        call.setTimeout(new Integer(15 * 1000));
        call.setOperationName(new javax.xml.namespace.QName("capeconnect:GlobalWeather:StationInfo", "listCountries"));
        AsyncCall ac = new AsyncCall(call);
        IAsyncResult result = ac.invoke(new Object[]{});
        System.out.println("STARTED");
        Status status = null;
        while ((status = result.getStatus()) == Status.NONE) {
            System.out.print('.');
            Thread.sleep(50);
View Full Code Here

                synchronized (call) {
                    call.notifyAll();
                }
            }
        });
        IAsyncResult result = ac.invoke(new Object[]{});
        System.out.println("STARTED....");
        synchronized (call) {
            call.wait(0);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.