Intelliware Logo

Problem description The standard SOAPFault that is generated by the CXF framework did not meet my needs. I needed a fault that looks like this: <soap:Fault> <faultcode>FailedAuthentication</faultcode> <faultstring>The security token …

Intelliware Logo

Plugin Configuration <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.0.6</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/wsdl/file.wsdl</wsdl> <extraargs> <extraarg>-p</extraarg> <extraarg>ca.intelliware.web.services</extraarg> <extraarg>-impl</extraarg> <extraarg>-client</extraarg> </extraargs> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> …

Intelliware Logo

Topics Maven and CXF Configuration and Troubleshooting Provider Services and WS-Security JBoss and CXF Adding an interceptor to the CXF fault chain Links Apache CXF User’s Guide