L.S.,
In ServiceMix 5.0.0, you would use a Camel route to build an integration flow. In this case, you're flow starts with a JBI HTTP SOAP consumer endpoint, so the equivalent in Camel would be a route that starts with a Camel CXF endpoint. Have a look at http://camel.apache.org/cxf.html for more information about this. If you look at the camel-cxf-rest example in the assembly, you'll get an idea how this would work using a REST service. It doesn't look like we have an example that shows you how to combine a SOAP service with a Camel route at the moment, but I raised https://issues.apache.org/jira/browse/SM-2298 to ensure we add an example like that. Regards, Gert Vanthienen On Tue, May 13, 2014 at 12:56 AM, techy_bolek <[email protected]> wrote: > I have an old http consumer JBI service unit. How do I achieve the same > functionality in Service Mix 5.0 as an OSGI bundle? > > xbean.xml: > <beans> > <http:endpoint service="sm:responsereceiver" > endpoint="soap" > role="consumer" > locationURI="http://localhost:8192/receiveresponse/" > defaultMep="http://www.w3.org/2004/08/wsdl/in-only" > soap="true" > targetService="sm:mypipeline" > /> > </beans> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > <groupId>com.mygroup</groupId> > <artifactId>myhttpconsumer</artifactId> > <packaging>jbi-service-unit</packaging> > <version>1.0-SNAPSHOT</version> > <name>Apache ServiceMix :: HTTP Service Unit</name> > > <dependencies> > <dependency> > <groupId>org.apache.servicemix</groupId> > <artifactId>servicemix-http</artifactId> > <version>2013.01</version> > </dependency> > </dependencies> > > <build> > <defaultGoal>install</defaultGoal> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0.2</version> > <configuration> > <source>1.5</source> > <target>1.5</target> > <encoding>UTF-8</encoding> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-resources-plugin</artifactId> > <version>2.4.3</version> > <configuration> > <encoding>UTF-8</encoding> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.servicemix.tooling</groupId> > <artifactId>jbi-maven-plugin</artifactId> > <version>4.5</version> > <extensions>true</extensions> > </plugin> > </plugins> > </build> > </project> > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/how-to-implement-old-jbi-http-consumer-as-osgi-bundle-tp5720235.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
