1 Reply Latest reply on Sep 18, 2008 5:27 AM by deleted user

    urgent help in File binding and Http binding

    manish goyal Newbie

      Hi,

       

      please give me the pointers for configuring file binding and http binding on the same fuse.

       

      Thanks

        • 1. Re: urgent help in File binding and Http binding
          deleted user Newbie

          You do not really indicate what you are trying to do here.

           

          1) If you are trying to take the contents of a file and pass it to the http service you can do something like file-poller-su

           

          2) http provider-su - here I have specified it to be a provider so it will forward the request to some other external service - you need to fill in your locationURI or decide what you are doing with the http service

           

           

          File-poller-su xbean.xml file

          FILE_DIRECTORY - your directory

           

          <beans xmlns:file="http://servicemix.apache.org/file/1.0"        
          xmlns:logisticx="http://logisticx.demo.fuse.iona.com/">
          
          <file:poller service="logisticx:file"
                   endpoint="poller"
                   file="${FILE_DIRECTORY}"
                   targetService="logisticx:StockService"
                   targetEndpoint="StockEndpoint"
                   deleteFile="true"
                   autoCreateDirectory="true"></file:poller>
          
          </beans> 
          

           

           

           <beans xmlns:http="http://servicemix.apache.org/http/1.0"
          xmlns:logisticx="http://logisticx.demo.fuse.iona.com/">
          
           <http:endpoint service="logisticx:StockService"
                   endpoint="StockEndpoint"
                   role="provider"
                   locationURI="....."
          
          </beans>