I'm curious how to actually invoke an asynchronous request using
AsyncCall (see: org.apache.axis.client.async.AsyncCall).
I have the following code:

try{ 
          Options options = new Options(args); 
          String endpointURL = options.getURL(); 
          Service  service = new Service(); 
          Call    call    = (Call) service.createCall(); 
        
             /* Set SOAP operation */ 
          
          call.setTargetEndpointAddress( new java.net.URL(endpointURL) ); 
          call.setOperationName( new QName("http://service.url","asyncTest";) ); 
        
          org.apache.axis.client.async.AsyncCall a = new AsyncCall(call); 
          a.invoke(new java.lang.Object[] {}); 
} 

The code above does not invoke the service "asyncTest" as expected. 
What would be the correct syntax for this?

One other question..
Is the org.apache.axis.client.async API truly asynchronous, or does the
server just spawn a thread for each async request?

Thanks in advance,

-- 
James Loghry


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to