Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WebService WSE
I have this XML i am not able to get wsse:Security value like user name and pass.
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
        <Header >
            <ResponseSentDateTime/>
            <!-- If calling system is storing the response, then they could populate  this field before saving -->
            <ResponseReceivedDateTime/>
            <!--Optional field to pass. This may contain any tracking Id of the calling system -->
            <SessionId>7556fetf68fa50-66d3-4fdb-93c1-3b56f66340bd</SessionId>
            <!-- This will not be sent in Reponse  -->
            <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/06/secext">
                <wsse:UsernameToken wsu:Id="sample" xmlns:wsu="http://schemas.xmlsoap.org/ws/2003/06/utility">
                    <!-- User Name was issued by Hub team. Please check with Hub team if you do not have it -->
                    <wsse:Username>test</wsse:Username>
 
<pre>
                &lt;wsse:Password Type=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest&quot;&gt;EVpXS/7yc/vDo+ZyIg+cc0fWderwrwer=&lt;/wsse:Password&gt;
 
                &lt;wsse:Nonce&gt;rwerwewrr=&lt;/wsse:Nonce&gt;
                                    &lt;wsu:Created&gt;2003-07-16T01:24:32&lt;/wsu:Created&gt;
            &lt;/wsse:UsernameToken&gt;
        &lt;/wsse:Security&gt;
 
        &lt;Extensions xsi:nil=&quot;true&quot;/&gt;
    &lt;/Header&gt;
&lt;/soap:Header&gt;

</soap:Envelope>
Posted 28-May-13 1:52am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 490
1 Sergey Alexandrovich Kryukov 325
2 ProgramFOX 265
3 Maciej Los 245
4 Andreas Gieriet 200
0 OriginalGriff 465
1 Sergey Alexandrovich Kryukov 275
2 ProgramFOX 265
3 Maciej Los 245
4 Andreas Gieriet 200


Advertise | Privacy | Mobile
Web04 | 2.8.150331.1 | Last Updated 28 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100