c# - Configuration WCF Client for WIF .NET 4.5 -


i've problem token sts. token if use soapui. don't know how configure client application creates request like:

<s:envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">    <s:header>      <a:action s:mustunderstand="1">http://docs.oasis-open.org/ws-sx/ws-trust/200512/rst/issue</a:action>      <a:to s:mustunderstand="1">https://.../idp/sts.wst</a:to>      <o:security s:mustunderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">        <o:usernametoken>          <o:username>xxxuserxxx</o:username>          <o:password>xxxpwxxx</o:password>        </o:usernametoken>      </o:security>    </s:header>    <s:body>      <trust:requestsecuritytoken context="http://client.ws.com" xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">        <wsp:appliesto xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">          <a:endpointreference>            <a:address>xxxaddressxxx</a:address>          </a:endpointreference>        </wsp:appliesto>        <trust:keytype>http://docs.oasis-open.org/ws-sx/ws-trust/200512/bearer</trust:keytype>        <trust:requesttype>http://docs.oasis-open.org/ws-sx/ws-trust/200512/issue</trust:requesttype>        <trust:tokentype>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#samlv2.0</trust:tokentype>      </trust:requestsecuritytoken>    </s:body>  </s:envelope>

can me?

does sts expose metadata exchange endpoint? if create client proxy via visual studio's "add service reference" dialogue (or use svcutil).

you use this article starting point.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -