How to generate classes from wsdl using Maven and wsimport?

后端 未结 7 950
时光说笑
时光说笑 2020-12-01 00:35

When I attempt to run \"mvn generate-sources\" this is my output :

SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".
SLF4J: Defaulting to n         


        
7条回答
  •  时光说笑
    2020-12-01 01:01

    Here is an example of how to generate classes from wsdl with jaxws maven plugin from a url or from a file location (from wsdl file location is commented).

    
      
                   
            
             
                org.codehaus.mojo
                jaxws-maven-plugin
                1.12
                 
                     
                        wsimport-from-jdk
                        
                            wsimport
                        
                    
                
                
                    
                    
                        
                            http://myWSDLurl?wsdl
                        
                    
                    
                        
                    
                    
                        
                    
                    
                    true 
                     
                    com.organization.name 
                    
                    target/generatedclasses
                
            
          
      
    

提交回复
热议问题