Hi, I figured out that writing a client with stub is the most easiest thing to do. You don't have to worry about writing the creation of call code manually.
Create the stub from wsdl2java. You can use AudaOrderService audaOrderService = new AudaOrderServiceLocator(); AudaOrderServicePort audaOrderServicePort = audaOrderService.getAudaOrderServicePort(new URL(url)); binding = new AudaOrderSOAPBindingStub(); // safety first ((AudaOrderSOAPBindingStub) binding).setTimeout(600000); //call the webservice method audaOrderServicePort.requestPacketList(<<param1>>,..); Thanks, Vivek -----Original Message----- From: jecki [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 9:36 AM To: [EMAIL PROTECTED] Subject: Service.createCall hi, I'm trying to consume a web service using AXIS client API. Can anyone give me the best practice to code the client application? Should I create Service or Call object all the time, or can I reuse it... or what if I want to use Service or Call object in a Servlet, which is not thread-safe. Thanks in advance. _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify [EMAIL PROTECTED] immediately. You should not copy it or use it for any purpose, nor disclose its contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of ADP.