Thank you for responding Joe.
If i use following configuration, it still generates service classes along
with POJOs. I do not need the services classes as well. Apologies for the
unformatted XML below.
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.1.9</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<defaultOptions>
<noAddressBinding>true</noAddressBinding>
</defaultOptions>
<fork>always</fork>
<sourceRoot>target/generated/src/main/java</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${wsdlBasePath}/Some.wsdl</wsdl>
</wsdlOption>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Thanks,
Giriraj
On Mar 31, 2017 2:45 AM, "Joe Luo" <[email protected]> wrote:
> The cxf-codegen-plugin does not generate client or server code unless you
> have configured it to. For instance, if you have added extra arguments like
> "-client", "-server" or "-impl":
>
> <wsdlOption>
> <wsdl>${basedir}/src/main/resources/wsdl/myService.wsdl</wsdl>
> <extraargs>
> <extraarg>-client</extraarg>
> <extraarg>-server</extraarg>
> <extraarg>-impl</extraarg>
> </extraargs>
> </wsdlOption>
>
> Regards,
> /Joe
>
> On Fri, Mar 31, 2017 at 5:33 AM, Giriraj Bhojak <[email protected]>
> wrote:
>
> > Hello,
> >
> > I have been trying to generate only mapped java classes from schema types
> > in WSDL. I do not need any client or server code. Just the POJOs.
> > I have tried various options listed on cxf.apache.org/docs/wsdl-to-
> > java.html
> >
> > I basically need to reuse the classes for a Java Rest client application.
> > So I was hoping to simply use the WSDL to generate POJOs.
> >
> > Has anyone faced such issue?
> > Perhaps, I am missing something trivial.
> >
> > Thanks,
> > Giriraj
> >
>