[英]namespace issue with WS-Trust
When I send a request to WS-Trust endpoint, my request includes WS-Trust namespace http://docs.oasis-open.org/ws-sx/ws-trust/200512
, but the WS-Trust Endpoint throws an error as 当我向WS-Trust端点发送请求时,我的请求包含WS-Trust命名空间
http://docs.oasis-open.org/ws-sx/ws-trust/200512
,但是WS-Trust端点将错误抛出为
<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>
It works fine if I use the namespace http://docs.oasis-open.org/ws-sx/ws-trust/200512/
, but how do I change on my WS-Trust endpoint so it accepts the request with http://docs.oasis-open.org/ws-sx/ws-trust/200512
. 如果使用命名空间
http://docs.oasis-open.org/ws-sx/ws-trust/200512/
,它会很好地工作,但是如何在WS-Trust端点上进行更改,以便它接受带有http://docs.oasis-open.org/ws-sx/ws-trust/200512
的请求http://docs.oasis-open.org/ws-sx/ws-trust/200512
。 I have checked my wsdl
and it has namespace as http://docs.oasis-open.org/ws-sx/ws-trust/200512
. 我已经检查过
wsdl
,它的名称空间为http://docs.oasis-open.org/ws-sx/ws-trust/200512
。
我通过更改WSDL生成的Java资源中的targetNamespace
来解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.