Note that there are some explanatory texts on larger screens.

plurals
  1. POWSE 3.0 creates the UsernameToken but Username and Password values are empty
    primarykey
    data
    text
    <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;soap:Header&gt; &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"&gt; &lt;wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="unt_PQxtsT0a8iV1KN2Y"&gt; &lt;wsse:Username&gt;&lt;/wsse:Username&gt; &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;&lt;/wsse:Password&gt; &lt;wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"&gt;i03CXze0uiIYG8+q8MhEMYHiMcL/NOpCwvEVpQ5xo+M=&lt;/wsse:Nonce&gt; &lt;wsu:Created&gt;2012-04-25T22:59:23Z&lt;/wsu:Created&gt; &lt;/wsse:UsernameToken&gt; &lt;wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt; &lt;wsu:Created&gt;2012-04-25T22:59:23Z&lt;/wsu:Created&gt; &lt;wsu:Expires&gt;2012-04-25T22:60:23Z&lt;/wsu:Expires&gt; &lt;/wsu:Timestamp&gt; &lt;/wsse:Security&gt; &lt;/soap:Header&gt; </code></pre> <p>Client code:</p> <pre><code>MessageServiceWse client = new MessageServiceWse(); UsernameToken usernameToken = new UsernameToken(token.Username, token.Password, PasswordOption.SendPlainText); client.RequestSoapContext.Security.Tokens.Add(usernameToken); client.RequestSoapContext.Security.Timestamp.TtlInSeconds = 60; </code></pre> <p>client.SomeMethod(request);</p> <p>This the beautiful soap security header I managed to create after too much noise to install and use WSE 3.0 in VS 2010. BUT, my hell of calling this web service (which I don't control) continues, and while wverything seemed fine, I can't get through this last issue.</p> <p>If you notice on the request header, you can see that everything looks good, except, hte username and password I pass are not there!!!</p> <p>Anyone ever faced similar situation?</p> <p>Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload