Thursday, January 7, 2010
Pico Container Exploration
Suddenly an interesting framework jump into my eye: pico container. Feeling very excited to explore it a bit.
Monday, January 4, 2010
Publish WSDL as Web Service in Eclipse with Tomcat 6.0+Axis 2
NOTICE: THIS POST IS NOT FULLY WORKING, SOME UPDATES ARE EXPECTED
Some basic stuff needs to be recalled from time to time.1. Download distributions from official sites
- Eclipse 3.5
- Tomcat 6.0
- Axis 2
Open Preference->Web Services->Axis 2 Preferences, choose Axis 2 root folder as Axis runtime location. Confirm OK.
3. Create Tomcat Server instance in Eclipse and choose Tomcat 6.0 as runtime.
4. Create New Dynamic Web Project
Create project named "webservice"
5. Configure Web Project with Axis
Open project properties, choose tab "target runtimes", click on "uninstall facets". In the open panel, tick the checkbox on "axis 2 web services", confirm finish.
6. Create Simple Service
package pkg;
public class MyService {
public String getGreeting(String name) {
return "Hello " + name + "!";
}
}
7. Create WSDL from Service
Right click on MyService.java, choose Web Service->create Web service. Click on configuration->web service runtime, select Apache axis 2. Check publish service, click OK.
8. Start Server
It was done together with 7.
9. Create WSDL
Right click on MyService.java, choose Web Service->create Web service. Keep clicking next and ignore error.
10. Test Web Service
Choose from run->lauch web service explorer, open a new tab. Click on WSDL Page on right hand corner of Web Service Explorer. Click on WSDL Main, and choose browse from Action panel at right side. Choose webservice as workspace project, choose MyService.wsdl. Click GO. Click on operation "getGreeting" and enter any String for testing. Click GO and check response.
Wednesday, December 30, 2009
This week's Exploration
1. CQRS
2. Visitor Pattern is useless?
3. jdon framework workflow
4. open source project proposal
5. python basic
6. sun certificates
Tuesday, October 13, 2009
Thursday, June 4, 2009
Subscribe to:
Posts (Atom)