• Maven CXF wsdl2Java 给指定名空间设置包名


    <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-codegen-plugin</artifactId>
        <version>3.2.4</version>
        <executions>
            <execution>
                <id>generate-sources-w2j</id>
                <phase>generate-sources</phase>
                <configuration>
                    <sourceRoot>src/main/java</sourceRoot>
                    <wsdlOptions>
                        <wsdlOption>
                            <wsdl>${basedir}srcmain
    esourceswsdl20180628-OnePoint.svc-D11V2-single.wsdl</wsdl>
                            <extendedSoapHeaders>true</extendedSoapHeaders>
                            <autoNameResolution>true</autoNameResolution>
                            <bindingFiles>
                                <bindingFile>${basedir}srcmain
    esourceswsdljaxb-bindings.xml</bindingFile>
                            </bindingFiles>
                            <extraargs>
                                <extraarg>-p</extraarg>
                                <extraarg>http://schemas.microsoft.com/2003/10/Serialization/=wsclient.mystifly.com.microsoft.schemas._2003._10.serialization</extraarg>
                                <extraarg>-p</extraarg>
                                <extraarg>http://schemas.microsoft.com/2003/10/Serialization/Arrays=wsclient.mystifly.com.microsoft.schemas._2003._10.serialization.arrays</extraarg><extraarg>-p</extraarg>
                                <extraarg>Mystifly.OnePoint=wsclient.mystifly.onepoint.mystifly</extraarg>
                                <extraarg>-p</extraarg>
                                <extraarg>Mystifly.OnePoint.OnePointEntities=wsclient.mystifly.onepointentities.onepoint.mystifly</extraarg>
                                <extraarg>-p</extraarg>
                                <extraarg>http://schemas.datacontract.org/2004/07/Mystifly.OnePoint=wsclient.mystifly.org.datacontract.schemas._2004._07.mystifly</extraarg><extraarg>-p</extraarg>
                                <extraarg>http://schemas.datacontract.org/2004/07/Mystifly.OnePoint.AirRules1_1=wsclient.mystifly.org.datacontract.schemas._2004._07.mystifly_onepoint</extraarg>
                            </extraargs>
                        </wsdlOption>
                    </wsdlOptions>
                </configuration>
                <goals>
                    <goal>wsdl2java</goal>
                </goals>
            </execution>
        </executions>
    </plugin> 
  • 相关阅读:
    Java并发编程:同步容器
    Java并发编程:深入剖析ThreadLocal
    使用jQuery开发一个响应式超酷整合RSS信息阅读杂志
    Javascript 严格模式
    参数传递的四种形式----- URL,超链接,js,form表单
    《CSS 设计指南》学习笔记 一
    【BootStrap】初步教程
    JavaScript日期对象使用总结
    Web前端知识技能大汇总
    浏览器 CSS Hack 收集
  • 原文地址:https://www.cnblogs.com/boazy/p/9246010.html
Copyright © 2020-2023  润新知