Aug 04, 10 by Juan Lebrijo about spring, weblogic, Web Services, blog, Eclipse
Today we will create a SOAP Web Service, based on LebrijoSchool project which we were making in early weeks over Oracle-Weblogic Architechture.
First of all is to add the Web Services facet. Right button > Properties ... :
add_ws_facet.thumbnail.png9.14 KB
After, we will create the class from a Spring Service class. Right button > New > WebLogic Web Service for Spring Beans:
expose_spring_as_ws.thumbnail.png6.69 KB
Choose the Service, and the methods that we want to publish as Web Service.
Finally put it in the logical package: lebrijo.school.webservices. And name it as "SchoolCertificatesWS".
This is the code:
@Autowired
@Qualifier("RegistryService")
private IRegistryService springServ;
@WebMethod
public Registry findRegistryById(java.lang.String id) throws Exception {
return springServ.findRegistryById( id );
}