• 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> 
  • 相关阅读:
    上传文件漏洞(上传绕过)
    不安全的直接对象引用漏洞(浅析)
    python socket介绍
    python新手灰帽脚本练习---简易端口扫描
    python新手灰帽脚本练习---文件路径遍历收集
    python socket编程中端口被占用的解决方法(转载)
    .net core 使用功能总结
    Python学习计划整理
    Javascript 日期转换 几天前
    学习网站
  • 原文地址:https://www.cnblogs.com/boazy/p/9246010.html
Copyright © 2020-2023  润新知