Hi Henrik,
Welcome to Webservice newsgroup.
As for the UsernameOverTransport Security Assertion, addition to apply the
policy on our webservice, we also need to specify the authroization setting
in the policy. For example, we need to deny all the anonymous users so that
the client caller must provide UsernameToken (bydefault the serverside
will authenticate the username token against the windows security authority
(need clear Text password...)
Here is an example policy file which using UsernameOverTransport assertion
and deny all anonymous clients:
======================
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameOverTransportSecurity"
type="Microsoft.Web.Services3.Design.UsernameOverTransportAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader"
type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<extension name="authorization"
type="Microsoft.Web.Services3.Design.AuthorizationAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="ServicePolicy">
<authorization>
<allow role="VS2005TeamSuite\WSEGroup" />
<deny user="*" />
</authorization>
<usernameOverTransportSecurity />
<requireActionHeader />
</policy>
</policies>
==========================
Hope helps. Thanks,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Henrik Skak Pedersen - 24 Nov 2005 15:50 GMT
Hi Steven,
Thank you very much for you reply that solved my request.
Thanks
Henrik
> Hi Henrik,
>
[quoted text clipped - 48 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Steven Cheng[MSFT] - 25 Nov 2005 00:50 GMT
Thanks for your followup Henrik,
glad that the suggest helped you resolving the problem.
Have a good day!
Regards,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Henrik Skak Pedersen" <skak@community.nospam>
References: <OFRgEdC8FHA.3232@TK2MSFTNGP12.phx.gbl>
<DvyHU$O8FHA.3764@TK2MSFTNGXA02.phx.gbl>
Subject: Re: Server policy : UserNameOverTransportAssertion WSE 3.0
Date: Thu, 24 Nov 2005 16:50:14 +0100
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <#fs4F7Q8FHA.3752@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements
NNTP-Posting-Host: 80.63.142.94
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices.enhancements:7728
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices.enhancements
Hi Steven,
Thank you very much for you reply that solved my request.
Thanks
Henrik
> Hi Henrik,
>
[quoted text clipped - 48 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)