You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Haug Thomas <th...@siemens.com> on 2003/06/30 14:26:49 UTC
Concurrent usage of the Call object ?
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
Re: Concurrent usage of the Call object ?
Posted by Su...@i2.com.
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 : sumit_babu@i2.com
Bangalore - 560027 | : sumit_babu@hotmail.com
Haug Thomas
<thomas.haug@siem
ens.com> To
"'axis-user@ws.apache.org'"
06/30/2003 05:56 <ax...@ws.apache.org>
PM cc
Subject
Please respond to Concurrent usage of the Call object
axis-user@ws.apac ?
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