1 22 package org.jboss.ejb3.test.webservices.jsr181; 23 24 import org.jboss.annotation.ejb.RemoteBinding; 25 import org.jboss.ws.annotation.PortComponent; 26 27 import javax.jws.WebMethod; 28 import javax.jws.WebService; 29 import javax.jws.soap.SOAPBinding; 30 import javax.ejb.Remote ; 31 import javax.ejb.Stateless ; 32 33 37 @WebService(name = "EndpointInterface", targetNamespace = "http://www.openuri.org/2004/04/HelloWorld", serviceName = "TestService") 38 @PortComponent(contextRoot="/jsr181", urlPattern="/*") 39 @SOAPBinding(style = SOAPBinding.Style.RPC) 40 @Remote (EJB3RemoteInterface.class) 41 @RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface") 42 @Stateless 43 public class EJB3Bean implements EJB3RemoteInterface 44 { 45 @WebMethod 46 public String echo(String input) 47 { 48 return input; 49 } 50 } 51 | Popular Tags |