从SOAP标头SAML断言中删除Base64Assertion [英] remove Base64Assertion from SOAP header SAML Assertion
问题描述
我的应用是一个使用网络服务的网络服务客户端。此服务需要SOAP标头中的SAML令牌以进行安全验证。我可以成功进行http post调用,但SOAP消息不成功。 http post请求和soap请求
之间的区别是一个额外的节点< Base64Assertion>,见下文。
My app is a web service client that consume a web service. This service requires SAML token in SOAP header for security validation. I can do http post call successfully but not success for SOAP message. The difference between http post request and soap request is a extra node <Base64Assertion>, see below.
我的问题是,我怎样才能使SOAP调用成功?
My question is, how can I do to make the SOAP call success?
谢谢
SOAP请求(失败)
SOAP request (Failure)
< soap:Header>
< Security xmlns =" http:// docs .oasis-open.org / wss / 2004/01 / oasis-200401-wss-wssecurity-secext-1.0.xsd ">< Base64Assertion>< saml:Assertion>
<soap:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><Base64Assertion><saml:Assertion>
......
< / saml:断言>< / Base64Assertion>< / Security>
</saml:Assertion></Base64Assertion></Security>
Http帖子:(成功)
Http post: (Success)
< soap:Header>
< Security xmlns =" http:// docs .oasis-open.org / wss / 2004/01 / oasis-200401-wss-wssecurity-secext-1.0.xsd ">< saml:Assertion>
<soap:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><saml:Assertion>
......
< / saml:断言>< / Security>< / soap:header>
</saml:Assertion></Security></soap:header>
推荐答案
这不是C#问题,请试试这个网络服务论坛: http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/threads
或者你的WCF论坛重新使用它: http://social.msdn.microsoft.com/Forums/en- US / wcf / threads
Or the WCF forum once you're using it: http://social.msdn.microsoft.com/Forums/en-US/wcf/threads
如果有任何疑虑,请随时告诉我。
If there's any concern, please feel free to let me know.
祝福,
这篇关于从SOAP标头SAML断言中删除Base64Assertion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!