4 Replies Latest reply on Sep 19, 2008 1:09 AM by manish_goyal

    Xmlns in http binding

    manish_goyal

      What is the significance of xmlns in file binding to http-binding xbean.xml in an SU?

      for ex.Poller-SU

      {<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:D:/Polar"       targetService="logisticx:HelloTestService" targetEndpoint="StockEndpoint"       deleteFile="true" autoCreateDirectory="true"/>

      </beans>}

       

      Webservice Su

       

      {<beans xmlns:http="http://servicemix.apache.org/http/1.0"

      xmlns:logisticx="http://logisticx.demo.fuse.iona.com/">

      <http:endpoint service="logisticx:HelloTestService" endpoint="StockEndpoint" role="provider" locationURI="http://localhost:9090/hello"     wsdlResource="http://localhost:9090/hello/?wsdl" />

      &lt;/beans&gt;

      }

       

      while deploying we get an error for this particular line-

      xmlns:file="http://servicemix.apache.org/file/1.0file/1.0"

       

      How do we know which link to provide?

       

      Edited by: manish_goyal on Sep 18, 2008 8:06 AM

        • 1. Re: Xmlns in http binding
          edelln

          This defines the prefix used for that namespace

           

          eg.

          xmlns:file="http://servicemix.apache.org/file/1.0"

           

          file:poller

           

          Is the servicemix-file component in your hotdeploy directory

           

          What version of Servicemix are you using ?

          • 2. Re: Xmlns in http binding
            manish_goyal

            yes the servicemix-file component is in hotdeploy directory.

            we are using servicemix 3.3.1.3

             

            How do we decide what namespace to use in case of file binding and Http binding.

             

            How do dependencies affect the deployment of a service assembly?

            Is it possible to check what dependencies need to be added to the SU and SA before building and deploying them?

            • 3. Re: Xmlns in http binding
              edelln

              You don't indicate what you want your http service to do ?

              is it forwarding the message to another service or something with it itself.

               

              As regards the dependencies you will have to add these into your file-su

               

              
              <dependencies>    
                  <dependency>
                    <groupId>org.apache.servicemix</groupId>
                    <artifactId>servicemix-file</artifactId>
                    <version>3.3.1.3-fuse</version>
                  </dependency>
                  <dependency>
                    <groupId>org.apache.servicemix</groupId>
                    <artifactId>servicemix-core</artifactId>
                    <version>3.3.1.3-fuse</version>
                    <scope>provided</scope>
                  </dependency>    
                </dependencies>
              
              

               

              and likewise for the http one - just change it to use servicemix-http

               

              then you will  need to add the two dependencies for these su's to your assembly.

              • 4. Re: Xmlns in http binding
                manish_goyal

                We need the service to forward it to a web service which is at the url http://localhost:9090/hello/