8 Replies Latest reply on Jun 9, 2012 9:08 AM by gertv

    Urgent::How to write Client program in Fuse Calling external web service

    jayasreeb

      Hi,

       

      I have created a http webservice using axis (literal/wrapped) style and deployed it in Tomcat.

      By entering "http://localhost:8080/axis/services/fibonacci?wsdl" in browser following wsdl gets generated.

       

       

       

                                

                               <wsgen

                                    wsdl="$/src/main/resources/fib.wsdl"                               outputDirectory="$/target/generated-sources"

                                    profile="org.codehaus.xfire.jaxws.gen.JAXWSProfile"

                                    explicitAnnotation="true" />

                           

                               $/target/generated-sources

                           

       

      6)When I give mvn install all the neccessary jar and class file gets generated properly.

       

      7)Following Client stubs class file gets generated under(target\classess\fibonacci) folder of cxf-se service unit.

       

      i)CalculateFibonacci.java

      ii)CalculateFibonacciRange.java

      iii)CalculateFibonacciRangeResponse.java

      iv)CalculateFibonacciResponse.java

      v)Fibonacci.java

      vi)FibonacciServiceImpl.java

      vii)FibonacciServiceService.java

      vIII)ObjectFactory.java

       

       

      8) Now I dont know how to write client class to invoke that external webservice which is running on tomcat server deployed using axis.

       

      9)Where do I need to place Client Class which I need to use to Invoke this exgternal web service?Will it work if i place it under (src\main\java) of cxf-se service unit?

       

      10) Which of the following generated class do i need to use to invoke the method of external web service?

       

      11) Do i need to make any additional entry in xbean/pom files?

       

      Please help me in this as this is on high priority..

       

      Thanks

      Jayasree.B