Software Development
Eclipse BIRT in Spring web applications Silvester Van der Bijl 29 Aug, 2006
Using these ant-tasks a new jar is created called google-ws.jar. This jar can be included in the classpath of your application. But instead of using the GoogleServiceLocator and other plumbing classes that are generated, we will have the WebService injected in a client service in our application by Spring. In Spring we do this by adding the following bean definition to our applicationContext.xml file.
com.google.search.webservice.GoogleSearchPort https://api.google.com/GoogleSearch.wsdl urn:GoogleSearch GoogleSearchService GoogleSearchPortThis bean definition generates a new dynamic proxy implementing the specified "serviceInterface" (in this case from our client jar) which can be injected into your own beans in your application. This proxy takes care of all the plumbing and SOAP calls. Notice which parts of the WSDL file map onto which properties in the bean-definition. To use the Google Web-API you need to request a license-key from Google. You can find the procedure to request one at https://api.google.com. Have fun searching the web!