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