小编Cod*_*ode的帖子

CXF错误:输入消息必须引用具有相同localnameas操作的全局元素声明

在运行wsdl2java时,我收到以下消息:

我使用cxf 3.1和jdk 7我的wsdl2java命令如下

wsdl2java -d C:\esub\.cxftmp/src -classdir C:\esub\build\classes -p http://www.example.org/ESBProxy/=org.example.esbproxy -impl  -exsh false -dns true -dex true -wsdlLocation file:/C:/esub/WebContent/WSDL/ESBProxy.wsdl -verbose -sn ESBProxy -defaultValues -fe jaxws -db jaxb -wv 1.1 file:/C:/esub/WebContent/WSDL/ESBProxy.wsdl
Run Code Online (Sandbox Code Playgroud)

输出:

INFO: Operation {http://www.example.org/ESBProxy/}PublishOnESB cannot be unwrapped, input message must reference global element declaration with same localnameas operation.
Run Code Online (Sandbox Code Playgroud)

下面是我的wsdl

<wsdl:portType name="ESBProxyPortType">
    <wsdl:operation name="PublishOnESB">
        <wsdl:input message="tns:NotifyRequest" />
        <wsdl:output message="tns:NotifyResponse" />
    </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ESBProxySOAPBinding" type="tns:ESBProxyPortType">
    <soap:binding style="document"
        transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="PublishOnESB" >
        <soap:operation soapAction="http://www.example.org/ESBProxy/PublishOnESB" style="document"/>
        <wsdl:input>
            <soap:body parts="parameters" use="literal" /> …
Run Code Online (Sandbox Code Playgroud)

wsdl web-services cxf wsdl2java jax-ws

7
推荐指数
0
解决办法
1658
查看次数

Quarkus 日志记录事务 ID

我的应用程序有几个JAX-RSAPI,它们都将交易 id 作为标头,我们有什么方法可以访问交易 id 吗Jboss Logger?我们尝试过MDC,但这没有帮助。基本上我正在寻找将事务 ID 添加到每个日志中的有效方法。

jboss-logging quarkus

4
推荐指数
1
解决办法
3154
查看次数

标签 统计

cxf ×1

jax-ws ×1

jboss-logging ×1

quarkus ×1

web-services ×1

wsdl ×1

wsdl2java ×1