message.getId().equals(id)) { return message; } } return null; } private MessageManager getMessageManager() { return (MessageManager) Component.getInstance(MessageManagerBean.class, ScopeType.SESSION, true); } } SOAP Metadata To expose a SOAP interface we just need to apply some JAX-WS metadata to MessageService. Specifically, we apply the @javax.jws.WebService annotation to the class. REST Metadata Of course we