java - Unable to generate Pojos with Apache CXF code-gen -


i trying generate java pojos apache cxf code-gen. have added plugin in pom.xml , defined schema in resource. not generating source mvn generate-sources , not showing error.

stack-trace

[info] --- cxf-codegen-plugin:3.1.6:wsdl2java (generate-sources) @ empservice --- [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ [info] total time: 2.260s [info] finished at: tue sep 12 12:15:31 ist 2017 [info] final memory: 19m/220m [info] ------------------------------------------------------------------------ 

plugin

<plugins>         <plugin>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-maven-plugin</artifactid>         </plugin>         <plugin>             <groupid>org.apache.cxf</groupid>             <artifactid>cxf-codegen-plugin</artifactid>             <version>3.1.6</version>             <executions>                 <execution>                     <id>generate-sources</id>                     <phase>generate-sources</phase>                     <goals>                        <goal>wsdl2java</goal>                     </goals>                     <configuration>                     <sourceroot>${basedir}/src/main/java</sourceroot>                             <wsdloptions>                                 <wsdloption>                                     <wsdl>${basedir}/src/main/resources/wsdl/employee.wsdl</wsdl>                                 </wsdloption>                             </wsdloptions>                         </configuration>                  </execution>             </executions>          </plugin>     </plugins> 

employee.wsdl (schema)

<?xml version="1.0" encoding="iso-8859-1"?>  <wsdl:definitions name="createemployeebean"                   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"                   xmlns:tns="http:createemployee.com" xmlns:xs="http://www.w3.org/2001/xmlschema"                   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"                   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"                   targetnamespace="http:createemployee.com">     <wsdl:types>         <xs:schema targetnamespace="http:createemployee.com">             <xs:element name="createemployeeinput">                 <xs:complextype>                     <xs:sequence>                         <xs:element type="xs:string" name="name" />                         <xs:element type="xs:string" name="email" />                         <xs:element type="xs:string" name="password" />                         <xs:element type="xs:string" name="mobile" />                         <xs:element type="xs:string" name="address" />                     </xs:sequence>                 </xs:complextype>             </xs:element>             <xs:element name="createemployeeoutput">                 <xs:complextype>                     <xs:sequence>                         <xs:element type="xs:string" name="status" />                         <xs:element type="xs:int" name="code" />                     </xs:sequence>                 </xs:complextype>             </xs:element>         </xs:schema>     </wsdl:types>       <!--define input , output parameters -->     <wsdl:message name="createemployeeinput">         <wsdl:part name="in" element="tns:createemployeeinput" />     </wsdl:message>     <wsdl:message name="createemployeeoutput">         <wsdl:part name="out" element="tns:createemployeeoutput" />     </wsdl:message>      <!--define port definition -->     <wsdl:porttype name="createemployeeendpoint">         <wsdl:operation name="createemployee">             <wsdl:input message="tns:createemployeeinput" />             <wsdl:output message="tns:createemployeeoutput" />         </wsdl:operation>     </wsdl:porttype>      <!--bind soap operation , service -->     <wsdl:binding name="createemployeebinding" type="tns:createemployeeendpoint">         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />         <wsdl:operation name="createemployee">             <soap:operation soapaction="http:createemployee.com"                             style="document" />             <wsdl:input>                 <soap:body parts="in" use="literal" />             </wsdl:input>             <wsdl:output>                 <soap:body parts="out" use="literal" />             </wsdl:output>         </wsdl:operation>     </wsdl:binding>      <!--define service -->     <wsdl:service name="createemployeeendpointservice">         <wsdl:port name="createemployeeendpoint" binding="tns:createemployeebinding">             <soap:address location="http://localhost:8080/service/createemployee" />         </wsdl:port>     </wsdl:service> </wsdl:definitions> 

i using intellij ide.i had tried generate source , using terminal.both 2 ways couldn't generate source schema. schema location : resources/wsdl/employee.wsdl. went through questions qs1,qs2,qs3,qs4.none of helps me fix issue.help me if wrong.

thanks in advance!!


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -