I would like to call an external web service within a route in Fuse ESB. By the looks of things you should use cxf to do this. I have code to add to my POM file, as follows. Maven does not like this. It complains that "Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin:2.6.0:wsdl2java (execution: generate-sources, phase: generate-sources)". And it does not matter what version I use - I have tried them all. Alos, when Maven builds the error I get is "'UTF-8' uses 1 bytes per character; but physical encoding appeared to use 2". Something is wrong, but what? This code is from Fusesource as an example. Has anyone got this working? My WSDL looks fine. All I want to do is call a webservice, it cannot be this hard, surely!!!
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.6.0</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<!-- Maven auto-compiles any source files under target/generated-sources/ -->
<sourceRoot>${basedir}/target/generated-sources/jaxws</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>C:/bolt-poc/src/main/resources/WSDL/esbWebService.wsdl</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>