8 Replies Latest reply on Jan 10, 2011 4:18 AM by ffang

    How do I invoke the WebService out of FUSE? it says no service,no endpoint

    cashethon

      I want to invoke the other system's webservice(http://localhost:8080/webservice_su/services/helloWorld) in servicemix using camel.

      and I did as follows:

      1. I use cxf-bc to bind the webservice just like this :

      first: I saved the webservice's wsdl and changed the wsdl:service

      <wsdl:service name="MsgInfoImplService">

        <wsdl:port binding="tns:MsgInfoImplServiceSoapBinding" name="MsgInfoImplPort11">

         <soap:address

          location="[http://localhost:8193/helloWorld]" />

        </wsdl:port>

      </wsdl:service>

      second:In the xbean.xml I defined the comsumer and the provider

       

      <cxfbc:consumer wsdl="classpath:person.wsdl"

              service="person:MsgInfoImplService"

              endpoint="person:MsgInfoImplPort11"

                            targetService="person:MsgInfoImplService"

                            targetEndpoint="MsgInfoImplPort"

                            targetInterface="person:MsgInfo"/>

       

       

      <cxfbc:provider 

               wsdl="[http://localhost:8080/webservice_su/services/helloWorld?wsdl]" 

               service="person:MsgInfoImplService" endpoint="MsgInfoImplPort"/> 

       

      And It works,I can use http://localhost:8193/helloWorld invoke http://localhost:8080/webservice_su/services/helloWorld?wsdl .

       

      2. In the camel-su ,I worte as follows:

       

       

      It delolyed well,but when it works,always say:

      no service,no endpoint or no interfacename

       

      please help me,tks,my fuse is 4.2