On Thu, Feb 21, 2008 at 2:25 PM, Channappa, Prabhuprasad <[EMAIL PROTECTED]> wrote: > Hi, Iam new to Service Mix 3.2.1 and Maven. > > Please help me in getting a tutorial to develop service mix component > which lookup an external web service(existing web service).
Please do not email people directly. Sending the message to the mailing list is sufficient. First off, have you read the What is JBI document and everything linked to it that is available here: http://servicemix.apache.org/what-is-jbi.html This is the first place to start so that you have a base understanding of ServiceMix. After that I would suggest walking through some of the tutorials here: http://servicemix.apache.org/tutorials.html There isn't a tutorial yet that will show you specifically how to call out to an external web service, but they will help you become familiar with how to use ServiceMix and develop service units and service assemblies for it. To develop a service that proxies to an external web service, you'll need to develop a service unit that configures the servicemix-cxf-bc component to do this. Below is an example of the xbean.xml file configuration to do this: <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" xmlns:ns1="http://example.com"> <cxfbc:consumer wsdl="http://www.example.com/path/to/wsdl" targetService="ns1:StockQuotes" targetEndpoint="StockQuotesSoap" targetInterface="ns1:StockQuotesSoap"> </cxfbc:consumer> <cxfbc:provider wsdl="http://www.example.com/path/to/wsdl" locationURI="http://www.example.com/path/to/external/web/service/" service="ns1:StockQuotes" endpoint="StockQuotesSoap" interfaceName="ns1:StockQuotesSoap"> </cxfbc:provider> </beans> The configuration above forwards any message sent to the cxfbc:consumer to the cxfbc:provider which proxies those messages to the external web service that is notied in the locationURI attribute. Hope that helps. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache Camel - http://activemq.org/camel/ Apache ServiceMix - http://servicemix.org/ Apache Geronimo - http://geronimo.apache.org/ Blog: http://bruceblog.org/
