[jboss-user] [JBossWS] - how to make asynchronous call to webservice

jimmymani do-not-reply at jboss.com
Tue Jul 18 10:46:21 EDT 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958824#3958824

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958824



More information about the jboss-user mailing list