Specifying Package Name When Using Maven to Generate Java from WSDL

后端 未结 3 2165
孤独总比滥情好
孤独总比滥情好 2021-02-19 20:15

I am using a maven script to generate the Java code I need to communicate with a WCF service. I have gotten communication working and am ready to integrate my maven script, and

3条回答
  •  悲哀的现实
    2021-02-19 21:03

    This works very well for me:

    
                                    src/main/resources/wsdl/my_wsdl.wsdl
                                    
                                        -p
                                        http://services.demo.es/=com.my.package.demo1
                                        -p
                                        http://tempuri.org/=com.my.package.demo2
                                        -exsh
                                        true
                                        -client
                                        -wsdlLocation
                                        
                                    
                                
    

提交回复
热议问题