2 Replies Latest reply on Apr 19, 2010 7:27 PM by gwhitaker

    Problem with webservice - service is avilable only for  localhost

    rafal.janik

      Hi All,

       

      There is a little problem with web-service in my Fuse 4.2.0.

       

      The same service with the same settings is running on previous Fuse version without any problems.

       

      The service is defined in spring :

       

             <jaxrs:server id="clCSGRestService" address="$">

                 

       

      and the sevice is set to http://localhost:8190/myService :

           service=http://localhost:8190/myService

       

      my second try was to set 0.0.0.0

       

           service=http://0.0.0.0:8190/myService

       

      Both tested with curl :

       

      curl -d 'anyText' http://localhost:8190/myService/testService/test -H "Content-Type: text/plain"

       

      Ok - it works, but when I change localhost to host address or even ip it doesn't work:

       

            curl: (7) couldn't connect to host

       

      because the port is opened only for a localhost.

       

      Should I change something in karaf configs? Why with servicemix (FUSE 4.1.0.2) there is no such error?

        • 1. Re: Problem with webservice - service is avilable only for  localhost
          gwhitaker

          Rafal,

           

          Have you found the solution to this problem? I too am experiencing similar difficulties accessing a Web Service remotely, but local access is working fine.

           

          All,

           

          If there is a solution to this problem I'd like to know the cause/solution as I have a core requirement to call a Web Service running on an instance of Fuse ESB 4.2 running within a cloud. When the Web Console is installed I am able to access this via both DNS and IP when configured, but still unable to access the Web Service even though all the relevant ports are open and services running.

          • 2. Re: Problem with webservice - service is avilable only for  localhost
            gwhitaker

            Problem solved by changing archetype and addressing mechanism to not reference any form of localhost in the Web Service configuration. Also by appending CXF into the path when attempting to access via the browser.