Yes! thats right - you can use the maven-archtype commands to create skeleton service unit projects for you.
have a look at http://servicemix.apache.org/maven-archetypes.html Also when you have your service units created - you will have to create a Service Assembly and add in the two dependencies for the file and http provider service units. http://servicemix.apache.org/working-with-service-assemblies.html Edell. On Wed, Sep 17, 2008 at 10:52 AM, skg <[EMAIL PROTECTED]> wrote: > > That is fine so we have to create two xbean file . one for file poller > service unit and other for http provider service unit. Is it right. > Please reply soon. > > Edell Nolan wrote: > > > > Are you using the file poller to get the file > > > > you should just have to specify the targetService of your http provider > > endpoint. > > > > so you will need two Service units one for your file poller and one for > > the > > http provider. > > > > e.g xbean.xml > > > > <file:poller service="logisticx:file" > > endpoint="poller" > > file="${FILE_DIRECTORY}" > > targetService="logisticx:StockService" > > targetEndpoint="StockEndpoint" > > deleteFile="true" > > autoCreateDirectory="true"/> > > > > http provider > > > > <http:endpoint service="logisticx:StockService" > > endpoint="StockEndpoint" > > role="provider" > > locationURI="....." > > > > ...... > > > > </http:endpoint> > > > > Edell. > > > > > > On Tue, Sep 16, 2008 at 12:13 PM, skg <[EMAIL PROTECTED]> > wrote: > > > >> > >> Hi, > >> I want to read an xml file. I found that File binding component can do > >> that > >> but i have to pass the content of the file as a message to Http provider > >> end > >> point as input. How can i pass this message to Http provider. > >> This Http provider will in turn call my web service that i had already > >> built. > >> Can you please explain me how should i go for it. > >> -- > >> View this message in context: > >> > http://www.nabble.com/File-binding-to-Http-Provider-tp19509695p19509695.html > >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/File-binding-to-Http-Provider-tp19509695p19528254.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
