gpt4 book ai didi

apache - 轴故障 : Namespace mismatch error when called from certain client such as Docuware

转载 作者:行者123 更新时间:2023-11-28 23:11:40 24 4
gpt4 key购买 nike

我有一个在 Tomcat 9 上使用 Axis 2 构建的 SOAP Web 服务,到目前为止,当从测试工具 (SOAPUI) 和使用 Netbeans 构建的自定义客户端请求时,它运行良好。

但是当我从名为 Docuware 的 BPM 发出请求时,我收到此错误:

enter image description here

错误:

org.apache.axis2.AxisFault: namespace mismatch require http://ws.apache.org/axis2 found http://ws.apache.org/axis2/

据我所知,命名空间是在 wsdl 文件中定义的,它似乎与所需的 URL(没有斜线的那个)相匹配:

enter image description here

(点击展开图片)

有什么想法吗?提前谢谢你。

最佳答案

似乎客户端(在本例中为 Docuware)发送带有最后一个斜杠的 namespace (这是找到的 namespace ),因此它与 wsdl namespace (必需)不同。

我通过更改所需的Service Target NamespaceSchema Target Namespace 来修复它,通过编辑services.xml 文件。

改变

<service name="ServicioPrueba">

<service name="ServicioPrueba" targetNamespace="http://ws.apache.org/axis2/">

并在服务标签内添加:

<schema schemaNamespace="http://ws.apache.org/axis2/" />

现在 wsdl 获得了自定义生成的目标命名空间。

关于apache - 轴故障 : Namespace mismatch error when called from certain client such as Docuware,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57180393/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com