are xmlns required?
- From: kelphis <amchater@xxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 08:29:40 -0700
I am playing with the WSE 2.0 and I just got it to start building the
soap XML for me to review
my program:
Dim un As UsernameToken = New UsernameToken("asdfasdf",
"asdfasfd", PasswordOption.SendHashed)
Dim senv As SoapEnvelope = New SoapEnvelope
senv.Context.Security.Tokens.Add(un)
senv.Context.Addressing.Clear()
senv.Context.Security.Timestamp.Id = ""
Dim p As Pipeline = New Pipeline
p.ProcessOutputMessage(senv)
senv.Save("c:\test.xml")
the soap message:
<?xml version="1.0" encoding="utf-8" ?>
- <soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/
addressing" xmlns:wsse="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" xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/">
- <soap:Header>
<wsa:MessageID>uuid:b662287c-69ec-4fb3-9e01-c983664d795b</
wsa:MessageID>
- <wsse:Security soap:mustUnderstand="1">
- <wsu:Timestamp>
<wsu:Created>2007-09-27T15:25:04Z</wsu:Created>
<wsu:Expires>2007-09-27T15:30:04Z</wsu:Expires>
</wsu:Timestamp>
- <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/
2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="SecurityToken-053211fa-dfd4-4f05-a9ca-d2fe4218ee3a">
<wsse:Username>asdfasdf</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/
oasis-200401-wss-username-token-
profile-1.0#PasswordDigest">Nr6dUA0nphQpGDgL0vDPmnxADSA=</
wsse:Password>
<wsse:Nonce>UUX29Qay6yw1xM8336Ztsg==</wsse:Nonce>
<wsu:Created>2007-09-27T15:25:06Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body />
</soap:Envelope>
a couple of the tags have xmlns attributes on them that I personally
did not set. Are they required?
.
- Prev by Date: Re: UsernameToken throws configuration error
- Next by Date: RE: WSE 3.0 UsernameToken in COM+ to Web Service
- Previous by thread: RE: WSE 3.0 UsernameToken in COM+ to Web Service
- Index(es):
Relevant Pages
|
Loading