1) Apache CXF Download 2.3.0
Binary distribution
2) Latest Eclipse J2EE Version Helios
3) Tomcat 7.0.2
4) Tomcat'i eclipse e tanimlama
Java Eclipse
Window\preferences
Server category
Runtime Environments
Press Add Apache tomcat 7.0
Browse, choose root directory.
JRE kismina jdk secmemiz lazim. Bunun nedeni jsp compilation icin
ok
5) File new dynamic web project
Dynamic Web Module Version 2.5 secmek lazim
daha stable.
Sonra finish'e bas.
6) New Servlet de
doGet metodunu implement et
7) doGet icine
response.setContentType("text/html")
PrintWriter out = response.getWriter();
out.println("<html> ...");
right click run, then run on server
8) PreferencesWeb Services
CXF 2.x Preferences
Add
CXF Home: apache-cxf-2.3.0
9) Preferences
server and runtime
select apache cxf. 2.x
10) New Dynamic Web Project
Dynamic web module version 2.5
Configuration : cxf web services project v2.5
finish
11) Standart java class yap.
12) public String xxx(String xxx) {
return xxx;
}
13) new web service
objeyi sec
client ve sever full sec
monitor the web servce
next
use a service endpoint interface
create and SEI
skip annotations.
generate wsdl
generate wrapper and fault beans
default soap binding: soap 1.1
generate separate xsd for the types
press start server
test facility web service explorer
press next
we don't need bindings.
next
next
next
next
finish
14) web service explorer is for testing web service.
DeepThoughtSEI_...Client.java
generated code.
right click, run as java application
calisir. bu koddan bakarak, nasil yapildigini
ogrenirsin.
15) Web service:
contract-first : wsdl+sml schema : java code (exchange)
code-first : java-code : wsdl+sml-schema (initial)
16) cxf is very well integrated iwth spring.easy
axis2 : cok fazla support ediyor
Search Blog
Tuesday, January 24, 2012
Apache CXF - Eclipse Platform
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment