You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jochen Hebbrecht <Jo...@staff.certipost.be> on 2009/06/23 11:58:19 UTC
jaxrpc-mapping.xml in combination with Maven plugin
Hi,
I'm having a jaxrpc-mapping.xml file. I want CXF (in combination with Maven) to use the jaxrpc-mapping.xml file. Is there a way to configure my POM that it reads the file.
My current config:
<plugin>
<groupId>org.apache.cxf</
groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated-sources</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/wsdl/MYCOMPANY-css.wsdl</wsdl>
<extraargs>
<extraarg>-p</extraarg>
<extraarg>http://www.MYCOMPANY.be/css/2007/03=be.MYCOMPANY.css.MYAPPLICATION</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
I need the equivalent for this:
<wsdl-java location="http://....?wsdl">
<mapping file="META-INF/jaxrpc-mapping.xml" />
</wsdl-java>
Regards,
Jochen
Re: jaxrpc-mapping.xml in combination with Maven plugin
Posted by Daniel Kulp <dk...@apache.org>.
jaxrpc-mapping files are for JAX-RPC based webservices implementations, which
CXF is NOT one. CXF implements JAX-WS and thus would require a JAX-WS (or
JAXB) binding file, not a jaxrpc-mapping file.
Dan
On Tue June 23 2009 5:58:19 am Jochen Hebbrecht wrote:
> Hi,
>
> I'm having a jaxrpc-mapping.xml file. I want CXF (in combination with
> Maven) to use the jaxrpc-mapping.xml file. Is there a way to configure my
> POM that it reads the file.
>
> My current config:
>
> <plugin>
> <groupId>org.apache.cxf</
> groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.2.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
>
> <sourceRoot>${project.build.directory}/generated-sources</sourceRoot>
> <wsdlOptions>
> <wsdlOption>
>
> <wsdl>${basedir}/src/main/wsdl/MYCOMPANY-css.wsdl</wsdl> <extraargs>
> <extraarg>-p</extraarg>
>
> <extraarg>http://www.MYCOMPANY.be/css/2007/03=be.MYCOMPANY.css.MYAPPLICATIO
>N</extraarg> </extraargs>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> I need the equivalent for this:
>
> <wsdl-java location="http://....?wsdl">
> <mapping file="META-INF/jaxrpc-mapping.xml" />
> </wsdl-java>
>
> Regards,
> Jochen
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog