hi out there,

I am new to APACHE CXF and I have some questions, I hope someone will answer.

Dose APACHE CXF support soap with attachments (SWA)?

Is it possible to realise an client certificate authentication with APACHE CXF?

Did someone know a tutorial how to build an APACHE CXF webservice from wsdl and deploy the webservice at tomcat 6.0.*?

As I understand I have to generate the service-skeleton with wsdl2 java here my ant Task:

   <target name="cxfWSDLToJava">
<java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true">
           <arg value="-p" />
           <arg value="ns://ns1.myspace.com=service" />
           <arg value="-sn" />
           <arg value="CXFService" />
           <arg value="-d" />
           <arg value="${src}" />
           <arg value="-server" />
           <arg value="-impl" />
           <arg value="-ant" />
           <arg value="-autoNameResolution" />
           <arg value="${path2wsdlName}" />
           <classpath>
               <path refid="cxf.classpath" />
           </classpath>
       </java>
   </target>
this work the skeleton and all type classes are generated.

the I build an war-file for deployment on the tomcat server

   <target name="generate war">
       <war destfile="./dis/cxfservice.war" webxml="./WEB-INF/web.xml">
           <lib dir="../apache-cxf-2.2.5/lib" />
           <classes dir="./bin" />
           <webinf  dir="./spring" includes="applicationContext.xml" />
       </war>
   </target>

the compiler prints no errors, I think my problems are in the web.xml and or in the applicationContext.xml

when i deploy the service on tomcat the server print no error but the service isn't started the only message is: 11.12.2009 15:53:32 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL INFO: Creating Service {ns://ns1.myspace.com}CXFService from WSDL: file:./service_description/CXFService.wsdl


I attach the web.xml and the applicationContext.xml.

about an answer I would be pleased much, thank you for your time

so long Alex

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:jaxws="http://cxf.apache.org/jaxws";
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://cxf.apache.org/jaxws
        http://cxf.apache.org/schemas/jaxws.xsd";>
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

    <jaxws:endpoint id="CXFService" implementor="service.CXFServiceImpl" address="/CXFService" />
</beans>
<?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>
    <display-name>CXFService</display-name>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>WEB-INF/applicationContext.xml</param-value>
	</context-param>

	<listener>
		<listener-class>
			org.springframework.web.context.ContextLoaderListener
		</listener-class>
	</listener>

	<servlet>
		<servlet-name>CXFServlet</servlet-name>
		<display-name>CXF Servlet</display-name>
		<servlet-class>
			org.apache.cxf.transport.servlet.CXFServlet
		</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>CXFServlet</servlet-name>
		<url-pattern>/*</url-pattern>
	</servlet-mapping>
</web-app>

Reply via email to