jaxb绑定:用于命名空间(scd)的包不起作用

问题描述 投票:0回答:1

我试图将包名称映射到命名空间

根据文件:https://github.com/highsource/maven-jaxb2-plugin/wiki/Configure-Target-Packages-in-Binding-Files

    <jaxb:bindings xmlns:tns="http://www.myexample.com/my-service/request" scd="x-schema::tns">
        <jaxb:schemaBindings >
            <jaxb:package name="com.request" />
        </jaxb:schemaBindings>
    </jaxb:bindings>

它似乎被忽略了。

看完整的样本:https://github.com/deslauriersp/jaxb-bindings-not-working

jaxb xjc
1个回答
0
投票

问题出在XJC itsetf中

使用-wsdl选项时绑定不起作用(这是实验性的,官方不支持)

我的解决方案是包括所有XSD,但不包括WSDL本身

© www.soinside.com 2019 - 2024. All rights reserved.