10 Replies Latest reply on Jun 2, 2011 10:28 AM by futuredan

    SMX4 WSDL-first web service consumer without Java

    Michael LaBrot Newbie

      In ServiceMix 3, I can deploy a JBI service unit with nothing but a WSDL file that contains one extra element: <jbi:endpoint role='consumer' />


      I want to abandon JBI in ServiceMix 4 (apache-servicemix-4.3.1-fuse-00-00 to be specific), but I can't find any way to deploy a WSDL-first web service without generating a bunch of Java code from the WSDL and including it in my OSGi bundle.


      Supposedly I should be able to use the camel-cxf component by setting the parameters wsdlURL, serviceName, portName and dataFormat=MESSAGE, but I can't get it to work and cannot find any examples or alternative approaches anywhere.


      Can someone please provide an example of a ServiceMix 4 OSGi bundle that exposes a web service from a WSDL file without needing to generate Java code from the WSDL? Thanks in advance.