Hi Jacques,
You can get the certificate's subject from the X509Security token, this
token is available through the property SoapContext.Current.IdentityToken
X509SecurityToken token =
(X509SecurityToken)SoapContext.Current.IdentityToken;
The soap context is also available in the soap envelope:
envelope.Context.IdentityToken
There is no way to get the method name and arguments. The assertions are
only able to see soap documents, these documents contains a SoapAction and a
SoapBody with elements. WSE internally maps the SoapAction with the web
service's method and parses the SoapBody to get the arguments.
You can do the same, but it seems to be a hard thing to do. (Unless, you
copy some code from WSE using Reflector).
Regards,
Pablo Cibraro.
> Hi,
>
[quoted text clipped - 10 lines]
> Thanks a lot
> JM
Jacques Marcialis - 05 Dec 2006 09:18 GMT
Hi
Thanks a lot. It work perfectly :)
For the method name and arguments, I parse the envelope.body as you
said :
envelope.Body.ChildNodes(0) is the xmlNode that discribe the method
which the name can be retreived with the property 'Name'.
envelope.Body.ChildNodes(0).ChildNodes(x) are the xmlnodes that
discribe every serialized argument.
Pablo Cibraro [MVP] a ?crit :
> Hi Jacques,
>
[quoted text clipped - 31 lines]
> > Thanks a lot
> > JM