2 Replies Latest reply on Aug 4, 2006 1:45 AM by jimmymani

    how to make asynchronous call to webservice

    jimmymani

      i have successfully executed the java ee 5 webservice example from jboss

      URL url = new URL("http://localhost:8080/hi/OrderProcessorUnit?wsdl");
      QName qname = new QName("http://hi.service.webservice.OrderProcessor/jaws", "OrderProcessorService");

      ServiceFactory factory = ServiceFactory.newInstance();
      Service service = factory.createService(url, qname);
      OrderProcessor webs = (OrderProcessor) service.getPort(OrderProcessor.class);
      System.out.println(webs.getWelcomeMessage());

      i have an interface

      @WebService
      @SOAPBinding(style=Style.RPC)
      public interface OrderProcessor extends Remote {
      @WebMethod public String getWelcomeMessage();

      }

      i have a webservice bean

      import javax.jws.WebService;

      @WebService(endpointInterface="hi.service.webservice.OrderProcessor")
      public class OrderProcessorUnit implements OrderProcessor{

      public String getWelcomeMessage()
      {
      return "hai welcome to service";
      }
      }


      accroding to this link

      http://java.sun.com/developer/technicalArticles/J2EE/intro_ee5/

      i want to make an asynchronous call to the web service

      please help me in finding a solution to this

      it will be helpful if you can give me the changes to make in the client


      thanks
      jimmymani