How do you view the SoapEnvelope xml?



I am playing the the soapenvelope and Im trying to add a UsernameToken
to the soapEnvelope like this:

Dim token As UsernameToken
token = New UsernameToken("kelly", "kelly",
PasswordOption.SendNone)
Dim s As SoapEnvelope = New SoapEnvelope

Dim p As Pipeline = New Pipeline

s.Context.Security.Tokens.Add(token)

but when I view the outerxml of the soapenvelope object i looks like
this:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body /></soap:Envelope>

.



Relevant Pages

  • Simple SoapClient Question
    ... Trying to create a simple request/response application. ... Using network capture, I see the request is sent and the server responds ... Public Function RequestResponseMethod(ByVal envelope As SoapEnvelope) As ... Dim destination As EndpointReference = New EndpointReference ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: How do you view the SoapEnvelope xml?
    ... Dim token As UsernameToken ... Dim s As SoapEnvelope = New SoapEnvelope ... Dim p As Pipeline = New Pipeline ... make sure that you clear the addressing section if you are not using ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • are xmlns required?
    ... soap XML for me to review ... Dim un As UsernameToken = New UsernameToken("asdfasdf", ... Dim senv As SoapEnvelope = New SoapEnvelope ... Dim p As Pipeline = New Pipeline ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • ReferenceProperty is Invalid element ?
    ... Added this ReferenceProperty to the ReplyTo header but got an 'Invalid element supplied' exception. ... Dim Env As SoapEnvelope = New SoapEnvelope ... Dim wsaReferenceProperties As New ReferenceProperties ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Calling WSE filters directly
    ... I would like to make use of WSE filters directly bypassing standard pipeline ... In other words I have a payload in a form of raw XML and would like to apply ... SoapEnvelope se = new SoapEnvelope; ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Loading