>I would like to add an UsernameToken to every outgoing wse request. I
>created
[quoted text clipped - 18 lines]
> // and set it to web service
> srv.SetPolicy(policy);
Hi Pablo,
Thanks for your reply, the reason i'm asking this, is because we are using
ObjectDatasources to fill datalists and other stuff. I can change the
typename for the objectdatasource to classname + Wse but I don't have the
option to add the wse policy imperatively. I have found a solution with
partial classes, but cannot get it to work.
Our policy contains an custom securitypolicyassertion with a
clientoutputfilter as SendSecurityFilter wich adds an usernametoken to the
security.tokens collection.
This is what i have tried:
Namespace svcSecurityService
<Microsoft.Web.Services3.Policy("FrontendWSESecurity")> _
Partial Class SecurityServiceWse
Inherits Microsoft.Web.Services3.WebServicesClientProtocol
End Class
End Namespace
' Tried this, but also didn't work
<Microsoft.Web.Services3.Policy("FrontendWSESecurity")> _
Partial Class monitoring
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim SecurityService As New svcSecurityService.SecurityServiceWse
'' // Toepassen policy op de webservice....
SecurityService.SetPolicy(Basis.Configuratie.Beveiliging.WsePolicy.GetPolicy)
We are developing our asp.net webapplication entirely in VB.
Regards,
Jeroen
> Hi,
>
[quoted text clipped - 29 lines]
> > // and set it to web service
> > srv.SetPolicy(policy);
Jeroen - 29 Mar 2006 15:32 GMT
The setpolicy used imperatively works like a charm.....
But i need the suggested class
<Microsoft.Web.Services3.Policy("FrontendWSESecurity")> attribute to work.....
Regards,
Jeroen
> Hi Pablo,
>
[quoted text clipped - 70 lines]
> > > // and set it to web service
> > > srv.SetPolicy(policy);