java - WS-Trust 的命名空间问题
问题描述
当我向 WS-Trust 端点发送请求时,我的请求包括 WS-Trust namespace http://docs.oasis-open.org/ws-sx/ws-trust/200512
,但 WS-Trust Endpoint 抛出错误
<soap:Fault>
<soap:Code>
<soap:Value>soap:Sender</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Unexpected element {http://docs.oasis-open.org/ws-sx/ws-trust/200512}RequestSecurityToken found. Expected {http://docs.oasis-open.org/ws-sx/ws-trust/200512/}RequestSecurityToken.</soap:Text>
</soap:Reason>
</soap:Fault>
如果我使用 namespace ,它工作得很好http://docs.oasis-open.org/ws-sx/ws-trust/200512/
,但是我如何在我的 WS-Trust 端点上进行更改,以便它接受带有http://docs.oasis-open.org/ws-sx/ws-trust/200512
. 我检查了我的wsdl
,它的命名空间为http://docs.oasis-open.org/ws-sx/ws-trust/200512
.
解决方案
我通过更改targetNamespace
从 WSDL 生成的 java 资源来解决此问题。
推荐阅读
- flutter - NoSuchMethodError:在 null 上调用了 getter 'photoUrl'?
- python - python程序执行后如何运行外部程序
- apache-spark - pyspark 将多列转换为不同的数据类型
- excel - 在 VA02 表格控件中读取文本
- sql - 如何在没有分组依据的列的情况下获得正确的结果?
- java - BufferedOutputStream 无法按预期使用韩语字符
- unicode - ascii中的254符号是什么,是■还是þ?
- python - 如何检查短语中是否有特定年份?
- python - 如何为 Python Pandas 中的每个重复元素添加一列?
- python - 如何使用pyspark从spark数据帧中过滤/提取无效的时间戳值