2 Replies Latest reply on Jul 3, 2008 5:44 AM by jayasreeb

    Urgent :How to call external web service &get response from them using FUSE

    jayasreeb

      Hi

       

      As per my understanding no need to write any java code if I am going to simply call the external web service.

      I need to create servicemix-cxf-bc which includes pom,xbean and wsdl of external web service.I need to add this to service assembly and deploy it in servicemix.

       

      If this is the case then how will I be testing the whole scenario of invoking external web service from Fuse?

       

      If my requirement is like that I will be getting response back from External Web service then what are the steps do i need to follow?

       

      Jayasree.B

        • 1. Re: Urgent :How to call external web service &get response from them using FUSE
          edelln

          Well this depends what are you actually trying to do ?

           

          What operation are you trying to invoke on your external web service ?

           

          For example I had another service that I had deployed in servicemix that sent the invocation (servicemix-bean) component.

           

          This would be an internal endpoint so it gets forwarded to the cxf-bc which takes that invocation effectively and invokes it on the external service.

           

          If you take a look at the logisticx src code you will see in the OrderService how it invokes another Service.

           

          You will need to replace it with the ServiceName etc of you external service.

           

          http://open.iona.com/wiki/display/ProdInfo/Logisticx+Demo

           

          rgds, Edell.

          • 2. Re: Urgent :How to call external web service &get response from them using FUSE
            jayasreeb

            Hi

             

             

            I have written a Java Method(HelloMethod) which returns XML as output.I am exposing this Java Method as web service through axis and tomcat.

             

            Now My requirement is I need to call this external web service(HelloMethod) from Fuse ESB and need to get the response back from this .

             

            1.What are the service units do I need to create to do this?

            2.What are the entries do I need to make in xbean.xml,pom.xml?

            3.How do I need to write a java program in Fuse which calls this method and gets response?

             

            Jayasree.B

             

             

             

            I am exposing a java method(HelloMethod) as a external web service .I need to invoke this method from Fuse and get

             

            Well this depends what are you actually trying to do ?

             

            What operation are you trying to invoke on your external web service ?

             

            For example I had another service that I had deployed in servicemix that sent the invocation (servicemix-bean) component.

             

            This would be an internal endpoint so it gets forwarded to the cxf-bc which takes that invocation effectively and invokes it on the external service.

             

            If you take a look at the logisticx src code you will see in the OrderService how it invokes another Service.

             

            You will need to replace it with the ServiceName etc of you external service.

             

            http://open.iona.com/wiki/display/ProdInfo/Logisticx+Demo