Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 45121 invoked from network); 6 Sep 2010 17:15:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Sep 2010 17:15:03 -0000 Received: (qmail 44328 invoked by uid 500); 6 Sep 2010 17:15:03 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 44232 invoked by uid 500); 6 Sep 2010 17:15:02 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 44223 invoked by uid 500); 6 Sep 2010 17:15:02 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 44219 invoked by uid 99); 6 Sep 2010 17:15:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Sep 2010 17:15:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Sep 2010 17:15:00 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o86HEelA004917 for ; Mon, 6 Sep 2010 17:14:40 GMT Message-ID: <3871490.11031283793280429.JavaMail.jira@thor> Date: Mon, 6 Sep 2010 13:14:40 -0400 (EDT) From: "Richard Kettelerij (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-3105) Contribution: Spring Web Services component In-Reply-To: <19746081.10571283724220368.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61700#action_61700 ] Richard Kettelerij commented on CAMEL-3105: ------------------------------------------- Thanks for commenting. William, in response to your questions: 1. Current camel trunk supports JDK 1.5, I saw your pom.xml was setting the target source to 1.6. Can this module be built with JDK 1.5 ? The source is 1.5 compatible. The only reason that 1.6 is set in pom.xml is that I'm using the embedded HTTPServer from Java 6 for testing the consumer. So it only applies to the consumer branch, the master/trunk has no Java 6 dependency. I'll see if I can use an alternative for this HTTPServer. I guess Java 6 also isn't allowed in unit tests? 2. I found the SpringWebserviceProducer only took the source object, do you have plan to support sending and receiving POJO ? This is by design actually. Since Camel already supports object (un)marshalling through JAXB and XStream I though of letting Camel handle to POJO to Source transformation like this: {code} from("direct:pojo-service").marshall().jaxb().to("springws:http://somehost/myservice") {code} I like this approach the most, however I have yet to try it out. If for some reasons this isn't possible then POJO support can always be implemented through Spring's OXM. But I don't think that is necessary. 3. Please try to use the camel 2.4.0 or camel 2.5 snapshot when you develop this component, it will make us easy to merge it into camel trunk. I'll upgrade to 2.5 snapshot. > Contribution: Spring Web Services component > ------------------------------------------- > > Key: CAMEL-3105 > URL: https://issues.apache.org/activemq/browse/CAMEL-3105 > Project: Apache Camel > Issue Type: New Feature > Affects Versions: 2.3.0 > Reporter: Richard Kettelerij > Fix For: Future > > > 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: > {code} > from("direct:myservice").to("springws:http://somehost/myservice") > {code} > 2) Configuration through url options (e.g SOAP action and WS-Addressing): > {code} > from("direct:myservice").to("springws:http://somehost/myservice?soapAction=http://somehost/foo&wsAddressingAction=http://somehost/bar") > {code} > 3) The components allows you to use the full power of Spring-WS client support by referencing a WebServiceTemplate in the Registry (ApplicationContext): > {code} > from("direct:myservice").to("springws:http://somehost/myservice?webServiceTemplate=#webServiceTemplate") > {code} > If you only want to use a custom message sender or message factory (e.g for Axiom messages) you can use: > {code} > from("direct:myservice").to("springws:http://somehost/myservice?messageFactory=#messageFactory&messageSender=#messageSender") > {code} > I'm open to any suggestions/comments/etc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.