title: java11 soap wsdl2java :how to create a class from wsdl file in java
body: <p>I am creating webservice in soap using java11 and wsdl file has been created then after that i tried to generate java class from wsdl file but an error occured. In java11 wsimport and wsgen has been removed so I have added appropriate dependency for that in pom.xml file. If there is any error or alternate solution for this kindly mention that I will be sharing the screenshot and pom.xml below.</p>
  <p><a href="https://i.stack.imgur.com/eSfgT.png" rel="nofollow noreferrer">i dont know what error is this javax/jws/soap/SOAPBinding$Style kindly check this</a></p>
  <p>this is the pom.xml file I have used</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
        
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
        
      &lt;packaging&gt;war&lt;/packaging&gt;
        
      &lt;version&gt;0.1.0-SNAPSHOT&lt;/version&gt;
        
      &lt;groupId&gt;com.inno.innowebservices&lt;/groupId&gt;
        
      &lt;artifactId&gt;InnoWebservices1&lt;/artifactId&gt;
        
      &lt;properties&gt;
              
          &lt;appengine.maven.plugin.version&gt;2.4.0&lt;/appengine.maven.plugin.version&gt;
              
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
              
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
              
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
              
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
              
          &lt;maven.compiler.showDeprecation&gt;true&lt;/maven.compiler.showDeprecation&gt;
            
      &lt;/properties&gt;
        
      &lt;dependencyManagement&gt;
              
          &lt;dependencies&gt;
                    
              &lt;dependency&gt;
                          
                  &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
                          
                  &lt;artifactId&gt;libraries-bom&lt;/artifactId&gt;
                          
                  &lt;version&gt;15.0.0&lt;/version&gt;
                          
                  &lt;type&gt;pom&lt;/type&gt;
                          
                  &lt;scope&gt;import&lt;/scope&gt;
                        
              &lt;/dependency&gt;
                  
          &lt;/dependencies&gt;
            
      &lt;/dependencyManagement&gt;
        
      &lt;dependencies&gt;
              
          &lt;!-- Compile/runtime dependencies --&gt;
              
          &lt;dependency&gt;
                    
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                    
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
                    
              &lt;version&gt;3.1.0&lt;/version&gt;
                    
              &lt;scope&gt;provided&lt;/scope&gt;
                  
          &lt;/dependency&gt;
          
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.metro&lt;/groupId&gt;
              &lt;artifactId&gt;webservices-rt&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
          &lt;/dependency&gt;
  
         &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
              &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&lt;/version&gt;
           &lt;/dependency&gt;
              
          &lt;dependency&gt;
                    
              &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
                    
              &lt;artifactId&gt;javax.servlet.jsp-api&lt;/artifactId&gt;
                    
              &lt;version&gt;2.3.1&lt;/version&gt;
                    
              &lt;scope&gt;provided&lt;/scope&gt;
                  
          &lt;/dependency&gt;
              
          &lt;dependency&gt;
                    
              &lt;groupId&gt;jstl&lt;/groupId&gt;
                    
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
                    
              &lt;version&gt;1.2&lt;/version&gt;
                  
          &lt;/dependency&gt;
              
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
              &lt;artifactId&gt;appengine-api-1.0-sdk&lt;/artifactId&gt;
              &lt;version&gt;1.9.83&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.endpoints&lt;/groupId&gt;
              &lt;artifactId&gt;endpoints-framework&lt;/artifactId&gt;
              &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.objectify&lt;/groupId&gt;
              &lt;artifactId&gt;objectify&lt;/artifactId&gt;
              &lt;version&gt;6.0.7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Test Dependencies --&gt;
              
          &lt;dependency&gt;
                    
              &lt;groupId&gt;junit&lt;/groupId&gt;
                    
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
                    
              &lt;version&gt;4.12&lt;/version&gt;
                    
              &lt;scope&gt;test&lt;/scope&gt;
                  
          &lt;/dependency&gt;
            
      &lt;/dependencies&gt;
        
      &lt;build&gt;
              
          &lt;!-- for hot reload of the web application--&gt;
              
          &lt;outputDirectory&gt;${project.build.directory}/${project.build.finalName}/WEB-INF/classes&lt;/outputDirectory&gt;
              
          &lt;plugins&gt;
                    
              &lt;plugin&gt;
                          
                  &lt;groupId&gt;com.google.cloud.tools&lt;/groupId&gt;
                          
                  &lt;artifactId&gt;appengine-maven-plugin&lt;/artifactId&gt;
                          
                  &lt;version&gt;${appengine.maven.plugin.version}&lt;/version&gt;
                        
              &lt;/plugin&gt;
                    
        
              &lt;plugin&gt;
                          
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          
                  &lt;artifactId&gt;maven-enforcer-plugin&lt;/artifactId&gt;
                          
                  &lt;version&gt;3.0.0-M3&lt;/version&gt;
                          
                  &lt;executions&gt;
                                
                      &lt;execution&gt;
                                      
                          &lt;id&gt;enforce-maven&lt;/id&gt;
                                      
                          &lt;goals&gt;
                                            
                              &lt;goal&gt;enforce&lt;/goal&gt;
                                          
                          &lt;/goals&gt;
                                      
                          &lt;configuration&gt;
                                            
                              &lt;rules&gt;
                                                  
                                  &lt;!-- appengine-maven-plugin requires Maven 3.5.0 or later --&gt;
                                                  
                                  &lt;requireMavenVersion&gt;
                                                        
                                      &lt;version&gt;3.5.0&lt;/version&gt;
                                                      
                                  &lt;/requireMavenVersion&gt;
                                                
                              &lt;/rules&gt;
                                          
                          &lt;/configuration&gt;
                                    
                      &lt;/execution&gt;
                              
                  &lt;/executions&gt;
                        
              &lt;/plugin&gt;
                  
          &lt;/plugins&gt;
            
      &lt;/build&gt;
      
  &lt;/project&gt;
  </code></pre>