Hi Iam developing a component that communicates with external web service. I have selected cxfbc service unit to develop this. Since I dint find the tutorial to develop cxfbc Unit, I have couple of doubts to proceed.
1. What is the use of service.wsdl in cxfbc Service Unit, what need to be added there? 2. Where I can append my request to the cxfbc Service Unit so that it can passes that request to external web service (UserId, Password...etc). 3. How do I get my request after this cxfbc Component communicates with external web service? (Do I need to write an xslt, xsd...etc) 4. Do I need to create a general Service Assembly to deploy this?? Or any specific Service Assembly?? Please help me in solving the above problems ... very urgent. Thanks Prabhu -----Original Message----- From: Bruce Snyder [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 3:41 PM To: [email protected] Subject: Re: Help Needed 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/
