3 Replies Latest reply on Dec 16, 2013 8:03 AM by kunalsuri

    Call/consume an external webservice through JBoss Fuse ESB

    kunalsuri

      Hi,

       

      For some testing purpose, I had created Cxf based SOAP web services and deployed them in  JBoss Fuse (6.0.0.redhat-024).

      I am using these services in some BPMS tools and can even test them in SoapUI tools successfully. I invoke these services by using the WSDL provided by Fuse ESB.

       

      Now, to demonstrate more complex Enterprise Scenario, I would like to call a 3rd party web service ( A service running in another tomcat server or a weather service by lets say AccuWeather) and use that service though JBoss Fuse WSDL.

       

      For this, I tried to see the thread [1] but it was quite old and I believe that there have been some changes now.


      Thus, could you please help me by providing me some pointers on how to call or proxy any external service in JBoss Fuse.

       

      Also, is there any possibility to get the some response time for this proxy this service using any available MBean like 'org.apache.cxf.management.counters.CounterRepository' so as to get an estimate of the difference between the request and response times.

       

      I did try to use the JBoss Fuse ESB example by Gert [2] to understand the proxy process better, but I am not able to proceed as this example is failing while building with the following error

       

      [ERROR] Plugin org.apache.cxf:cxf-codegen-plugin:2.6.0.redhat-60024 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org

      .apache.cxf:cxf-codegen-plugin:jar:2.6.0.redhat-60024: Failure to find org.apache.cxf:cxf-codegen-plugin:pom:2.6.0.redhat-60024 in http://repo.fusesource.com/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of fusesource has elapsed or updates are forced -> [Help 1]

      [ERROR]

       

      Thanks in advance!

      Kunal

       

      [1] http://fusesource.com/forums/thread.jspa?threadID=3541

      [2] https://github.com/FuseByExample/smx-ws-examples