package newpackage; import javax.jws.WebMethod; import javax.jws.WebService; import javax.xml.ws.wsaddressing.W3CEndpointReference; @WebService() public class Login { @WebMethod public synchronized W3CEndpointReference login(int id) { Service acc = new Service(id); return Service.manager.export(acc); } }