Que: How can I interact with security amendments in a SOAP envelop



I’ve been dealing with a problem regarding modifying and retrieving fields
to/from the SOAP envelope.
In my test application I run the service and the client app on the same
machine. Filters are used to manipulate the message.

Two major questions:
On the client side; when I add security to my SOAP message, I can catch it
with SOAP Toolkit, but I can’t get access to the fields within the filter to
modify it (I’ve tried to use filter inherited from both SecurityOutputFilter
and TraceOutputFilter. It seems that my adding of for example UsernameTokens
is added after I have a possibility to modify it. Trying to save to a file
with “envelope.Save” doesn’t give any info about the security amendments.

On the server side; when I debug my service app in the WebMethod, the
context shows for example a valid cipher value given by
“((Microsoft.Web.Services2.Security.SecurityElementCollection)(((Microsoft.Web.Services2.Security.Security)(soapCntxt.Security)).Elements))._elements._items[0]._cipherData.CipherValue”,
but is there a way to retrieve the value with appropriate methods?

Platform and tools:
Windows XP Pro, SP2
Dot Net Framework 1.1
Visual Studio .Net 2003
WSE 2.0
MSSoapT
SOAP Toolkit, version 3

Any hint would be highly appreciated,
/ Lars
.



Relevant Pages

  • Re: Inserting a SOAP Header in a client request
    ... custom SoapHeader and modify the ws client proxy by hand to ... custom SoapExtension and modify the stream by hand via ... custom Soap Extension and SoapHeader and modify the SoapMessage ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Soap project. RubyCLR vs Jruby vs Soap4r?
    ... Soap4r is a nice package for working with SOAP in Ruby. ... in that if your client app will ...
    (comp.lang.ruby)
  • Re: Inserting a SOAP Header in a client request
    ... Every Soap based ... So all you need to do is write to the chained stream using an xml writer. ... custom SoapHeader and modify the ws client proxy by hand to ... > SoapMessage before adding the soap header but that would be ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Modify HttpGet and HttpPost portions of WSDL
    ... Does anyone know if this can be modified in a similar way as the soap ... > HttpPost service ports in WSDL(In particular, I would like to modify ... I know you can modify the soap portion ...
    (microsoft.public.dotnet.framework.aspnet.webservices)