Click here to Skip to main content
15,880,905 members

unable to tread wsse:Security node value

Mukeshlky4u asked:

Open original thread
I have this XML i am not able to get wsse:Security value like user name and pass.

XML
<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>

                    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">EVpXS/7yc/vDo+ZyIg+cc0fWderwrwer=</wsse:Password>

                    <wsse:Nonce>rwerwewrr=</wsse:Nonce>
                                        <wsu:Created>2003-07-16T01:24:32</wsu:Created>
                </wsse:UsernameToken>
            </wsse:Security>

            <Extensions xsi:nil="true"/>
        </Header>
    </soap:Header>

</soap:Envelope>
Tags: C#, ASP.NET, Webservice, WSE

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900