Yes, but you also need the cxf-servlet.xml which configures your
endpoint. I would recommend you see this WIKI[1] page for your scenario,
it is simple POJO based.
Thanks
Jeff
[1] http://cwiki.apache.org/CXF20DOC/simple-frontend.html
Diego Pires Plentz wrote:
Excellent. Just one more question. To run this ws in a container like
tomcat, all I must do is set up web.xml as in
http://cwiki.apache.org/CXF20DOC/servlet-transport.html?
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>CXFServlet</servlet-name>
<display-name>CXF Servlet</display-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
</web-app>
On 9/12/07, Jeff.Yu <[EMAIL PROTECTED]> wrote:
Hi,
Yep, you can build and run demo without ANT. please refer to this
README[1], see the "Building the demo using javac" and "Running the demo
using java" section.
Thanks
Jeff
[1]
http://svn.apache.org/repos/asf/incubator/cxf/trunk/distribution/src/main/release/samples/java_first_jaxws/README.txt
Diego Pires Plentz wrote:
Hi Guys!
I'm migrating from XFire and I'm looking for a sample like the
"purchase-order" sample from XFire: just simple pojos/classes, little
configuration and no necessary ant calls. There is a way to do this in
CXF?
I'm already looked at the samples dir in the dist zip, but the README
file
tells to use the ant builders (even in the hello_world_code_fist
sample).
Thanks