Hi, regarding the problem of combining hand-written WSDL (i.e. wsdlLocation attribute) with servlet transport, I came across this: http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200705.mbox/[EMAIL PROTECTED]
I think it would be nice to add this to the website documentation. Besides that, I am not sure I have understood the proper configuration for servlet tranport. The use of cxf-servlet.xml is particularly unclear. Should I write my own, or import it in my Spring context? What is the purpose of cxf-servlet.xml? Cheers, J-F -----Message d'origine----- De : Jean-François Daune [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 septembre 2007 17:35 À : [email protected] Objet : RE: jaxws:endpoint and wsdlLocation I have no cxf-servlet.xml, but my Spring context contains the following: <!-- Import the main CXF configuration file --> <import resource="classpath:META-INF/cxf/cxf.xml"/> <!-- Import the SOAP bindings configuration file --> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <!-- Import the servlet transport configuration file --> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> J-F -----Message d'origine----- De : Sergey Beryozkin [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 septembre 2007 16:11 À : [email protected] Objet : Re: jaxws:endpoint and wsdlLocation Do you use <import> statements in your cxf-servlet.xml ? If yes then get rid of them and it should fix the problem... Cheers, Sergey ----- Original Message ----- From: "Jean-François Daune" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, September 17, 2007 3:00 PM Subject: jaxws:endpoint and wsdlLocation Hi, I cannot manage to configure properly a JAX-WS endpoint using servlet transport in Tomcat 5.5 with a custom WSDL: <jaxws:endpoint id="BackOffice" implementor="#backOfficeService" address="/erh/backoffice" wsdlLocation="WEB-INF/backoffice.wsdl"> <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature"/> </jaxws:features> </jaxws:endpoint> Generates: java.io.FileNotFoundException: D:\tools\apache-tomcat-5.5.25\bin\WEB-INF\backoffice.wsdl What should I put in 'wsdlLocation' ? Cheers, J-F ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
