Hello Thomas,

      You will have to call 'clearOperation' method between requests to use
the same call object. You can do something like this:



Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(url);
call.setOperationName(new QName("urn", "operation1"));
String result = (String) call.invoke(new Object[] { name });
System.out.println(result);
call.clearOperation();
call.setOperationName(new QName("urn", "operation2"));
result = (String) call.invoke(new Object[] { message });
System.out.println(result);


Hope this helps.

<!-- Sumit -->
<<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>>

A "No" uttered from deepest conviction is better and greater than a
"Yes" merely uttered to please, or what is worse, to avoid trouble.
                                    -- Mahatma Ghandi

<<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>>
i2 Technologies Software Pvt. Ltd.  | Phone     : 91-80-2078339 (Office)
#11, Divyashree Chambers, 4th Floor |     : 91-80-3408891 (Res.)
O-Saugnessey Road,                  | e-Mail    : [EMAIL PROTECTED]
Bangalore - 560027                  |     : [EMAIL PROTECTED]


                                                                           
             Haug Thomas                                                   
             <[EMAIL PROTECTED]                                             
             ens.com>                                                   To 
                                       "'[EMAIL PROTECTED]'"         
             06/30/2003 05:56          <[EMAIL PROTECTED]>           
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Concurrent usage of the Call object 
             [EMAIL PROTECTED]         ?                                   
                  he.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi everbody,

I have a question regarding the org.apache.axis.client.Call class. Is it
possible that a client creates only one Call instance and than issues
serveral requests through this object concurrently or is this kind of usage
illegal ?

Thanks,
Thomas


Reply via email to