4 Replies Latest reply on Apr 15, 2011 12:04 PM by rajk1000

    Demo Source Code For Webinar 'Creating Web Services with Camel CXF'

    rajk1000

      Hi,

       

      I have just watched the great webinar on your site by Adrian Trenaman entitled 'Creating Web Services with Camel CXF'.

       

      However, at the end of the webina Adrian promises the demo code connected to the slides. Can you please tell me if this is hosted anywhere, or could you send it to me at all?

       

      Many Thanks

        • 1. Re: Demo Source Code For Webinar 'Creating Web Services with Camel CXF'
          davsclaus

          They are preparing to setup the examples as a project called Sparks.

          http://fusesource.com/forge/projects/sparks

           

          I think its ongoing but you may be able to take a look and see if Ade have added his source code the webinar.

           

          I think they will make a public announcement when the project is ready. But take a peak and provide feedback.

          • 2. Re: Demo Source Code For Webinar 'Creating Web Services with Camel CXF'
            rajk1000

            Nope, nothing there unfortunately.

            Could you pass the message on to him by any chance?

             

            OR, all I need to do is to use camel-cxf to publish a webservice on my Tomcat server.

            From there , I will route it to other Camel routes.

             

            Currently, I'm just trying to get it to work, with any Hello World WSDL.

             

            Any idea what my Spring configuration might look like (bearing in mind that I wish to use Tomcat listening on port 8080)

             

            So far, I am trying with

             

            web.xml

            -


             

             

             

            cxf-servlet.xml

            -


             

             

             

            In my pom.xml, I am using the maven-war-plugin to generate my WAR file, which I deploy to Tomcat. The only dependency that I add in my pom.xml file for the CXF stuff is camel-cxf, and no others above what I was using before trying to do the CXF stuff.

             

            Hope you can help me.

            Many Thanks.

             

            The onl

            • 3. Re: Demo Source Code For Webinar 'Creating Web Services with Camel CXF'
              davsclaus
              • 4. Re: Demo Source Code For Webinar 'Creating Web Services with Camel CXF'
                rajk1000

                Thanks for the link. That example does indeed work.

                However, it still bothers me that my example, does not work.

                 

                Can I clarify that one can use a cxfEndpoint, without referring to a serviceClass SEI. I thought this was OK, as long as I am using dataFormat=PAYLOAD. In other words, I simply have a WSDL and NO Java SEI code at all, and because I used dataFormat=PAYLOAD, I expected this to work? Is that correct? (This was my understanding after viewing the webinar, although I have seen no similar examples elsewhere)

                 

                Specifically the error I get, in my Tomcat console, at deployment time, is  "Context initialization failed org.apache.camel.RuntimeCamelException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service."

                 

                This is an excerpt from my cxf-context.xml file..

                 

                 

                 

                Many Thanks In Advance.