Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3105

Contribution: Spring Web Services component

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.6.0
    • None
    • None
    • Patch Available

    Description

      I'd like to contribute a component I've developed to Apache Camel that adds support for Spring Web Services. The component is Apache 2.0 licensed - as is Spring-WS - and available from: http://github.com/rkettelerij/camel-spring-ws. Note that I'll happily remove this repo if and once the component is added to Camel's codebase.

      Currently the component only offers producer support (with help of Spring's WebServiceTemplate). I'm busy developing consumer support that allows you to express Spring-WS endpoint mappings through Camel uri's. This is coming along nicely and I'm hoping to release a tested version soon. Development can be tracked in this branch: http://github.com/rkettelerij/camel-spring-ws/tree/consumer/

      Examples (producer only):

      1) Route message to webservice:

      from("direct:myservice").to("springws:http://somehost/myservice")
      

      2) Configuration through url options (e.g SOAP action and WS-Addressing):

      from("direct:myservice").to("springws:http://somehost/myservice?soapAction=http://somehost/foo&wsAddressingAction=http://somehost/bar")
      

      3) The components allows you to use the full power of Spring-WS client support by referencing a WebServiceTemplate in the Registry (ApplicationContext):

      from("direct:myservice").to("springws:http://somehost/myservice?webServiceTemplate=#webServiceTemplate")
      

      If you only want to use a custom message sender or message factory (e.g for Axiom messages) you can use:

      from("direct:myservice").to("springws:http://somehost/myservice?messageFactory=#messageFactory&messageSender=#messageSender")
      

      I'm open to any suggestions/comments/etc.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              rkettelerij Richard Kettelerij
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: