开发者

Using ServiceMix to Proxy Remote Web Service

This might be obvious but i just still don't understand how i'd do it with ServiceMix : An ext开发者_开发知识库ernal web service http://mypartner.com/service/partnerService

My platform is for example http://myservicemix.com/

I'd like to use OSGI bundles

Is this what i need ? :

  • A cxfbc:provider (this is the one that talks to the remote service, just a wsdl in the bundle right ?)
  • A camel route and transformations to bridge the two
  • A jaxrs:server (i'd like to expose it as a REST service)


The cxfbc is a JBI component. JBI is essentially dead/legacy, so I suggest to not use that for new projects. You can read more about JBI is dead here: http://gnodet.blogspot.com/2010/12/thoughts-about-servicemix.html

So Apache ServiceMix is the server where you can host your Camel applications. So I suggest to look into how to do a webservice proxy with Camel.

For example there is an example with Camel http://camel.apache.org/cxf-proxy-example.html

That example is OSGi ready and can be deployed in Apache ServiceMix.

Also check out some of the CXF examples that are shipped with Apache ServiceMix, in the examples directory

The Camel CXF component can do both REST and WS. Also there is the camel-restlet component for REST support as well: http://camel.apache.org/restlet

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜