【发布时间】:2017-01-16 22:27:37
【问题描述】:
我已经设置了 Soap CXf 服务,当我发送以下示例请求时它可以工作
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="omitted" xmlns:ns1="omitted" xmlns:ns2="http://niem.gov/niem/niem-core/2.0">
<soapenv:Header/>
<soapenv:Body>
<ns:Notify>
<ns1:EventMessage>
<ns1:Message>
test
</ns1:Message>
</ns1:EventMessage>
</ns:Notify>
</soapenv:Body>
</soapenv:Envelope>
但是,当我尝试以下操作时,它失败了
<m:Notify xmlns:m="omitted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="omitted">
<jnet:EventMessage xmlns:jnet="omitted" xmlns:nc="http://niem.gov/niem/niem-core/2.0">
<jnet:Message>
<CourtCaseEvent xmlns="omitted" xmlns:ansi="http://www.it.ojp.gov/jxdm/ansi_d20/1.0" xmlns:aopc="omitted" xmlns:j="http://www.it.ojp.gov/jxdm/3.0" xmlns:ncic="http://www.it.ojp.gov/jxdm/ncic_2000/1.0" xmlns:nibrs="http://www.it.ojp.gov/jxdm/nibrs_misc/1.0"
xmlns:ref="omitted" xmlns:usps="http://www.it.ojp.gov/jxdm/usps_states/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" j:sourceIDText="1">
</CourtCaseEvent>
</jnet:Message>
</jnet:EventMessage>
</m:Notify>
Mule 的错误响应是:
“Notify”元素上的命名空间“http://jnet.state.pa.us/message/jnet/EventMessageConsumer/1”不是有效的 SOAP 版本。
我已尝试将 CXf 组件的命名空间属性设置为:
没有任何运气。感谢您的帮助!
【问题讨论】: