You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

On this page, we are going to configure the my-cxf-se-su to provide our service .

Configuring pom.xml

Changing the project name

In order to make the build output a little bit more comprehensible, we first change the project name in the generated pom.xml file.

 
<project>
  ...
  <name>CXF WSDL Tutorial :: CXF SE SU</name>
  ...
</project>

Adding org.apache.cxf plugin

We add this plugin to the generated pom.xml file to element plugins.

<plugin>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-codegen-plugin</artifactId>
   <version>${cxf-version}</version>
           <executions>
              <execution>
                  <phase>generate-sources</phase>
                  <configuration>
                      <sourceRoot>${basedir}/target/jaxws</sourceRoot>
                      <wsdlOptions>
                          <wsdlOption>
                              <wsdl>${basedir}/src/main/resources/hello.wsdl</wsdl>
                              <extraargs>
                                  <extraarg>-verbose</extraarg>
                              </extraargs>
                          </wsdlOption>
                      </wsdlOptions>
                  </configuration>
                  <goals>
                     <goal>wsdl2java</goal>
                  </goals>
               </execution>
           </executions>
   </plugin>

Where hello.wsdl is WSDL file, which we make later.

Second section

Now, we will just tell the user what to expect from the next tutorial page

Things to remember

  • You specify the plugin for a SU in Maven's pom.xml file
  • In ServiceMix, most service units will be configured by a file named xbean.xml



  • No labels