axis2 maven example

后端 未结 4 1405
忘掉有多难
忘掉有多难 2020-12-29 05:55

I try to use axis2 (1.5.1) version to generate java codes from wsdl files, but I can\'t figure out what is the correct pom.xml


    

        
4条回答
  •  无人及你
    2020-12-29 06:38

    Thanks to Pascal's pom, I was able to get it working by doing this with the latest versions. In addition:

    • I had to add the build-helper-maven-plugin plugin so that my client classes could access the proxy stubs.
    • I removed the package config option
    • I changed my outputDirectory

    Here's my pom:

    
    
    4.0.0
    com.yourcompany
    axis2-server-proxy
    1.0.0
    jar
    
    
        
            org.apache.axis2
            axis2
            1.6.3
        
        
            org.apache.ws.commons.axiom
            axiom-api
            1.2.15
        
        
            org.apache.ws.commons.axiom
            axiom-impl
            1.2.15
        
        
            axis
            axis-wsdl4j
            1.5.1
        
        
            org.apache.xmlbeans
            xmlbeans
            2.6.0
        
    
    
    
        
            
                org.apache.axis2
                axis2-wsdl2code-maven-plugin
                1.6.3
                
                    
                        
                            wsdl2code
                        
                        
                            target/generated-sources/
                            src/main/wsdl/services_visa_com_realtime_realtimeservice_v6_PublicV2.wsdl
                            xmlbeans
                        
                    
                
            
            
                org.codehaus.mojo
                build-helper-maven-plugin
                
                    
                        add-source
                        generate-sources
                        
                            add-source
                        
                        
                            
                                ${project.build.directory}/generated-sources/
                            
                        
                    
                
            
        
    
    

提交回复
热议问题