Look at the PolicyOnRequestBody sample in the QuickStart samples in the SDK
for an example of selectively applying policy to differet methods within a
single endpoint.
> I have the below source code:
> <WebService(Namespace:="http://tempuri.org/")> _
[quoted text clipped - 40 lines]
> ( The service is deployed on IIS server, and then the admin will use another
> application to configure that web service)
Look at the PolicyOnRequestBody example in the QuickStart samples in the WSE
3.0 SDK. This shows how to selectivly apply policy to various methods within
a single endpoint.
> I have the below source code:
> <WebService(Namespace:="http://tempuri.org/")> _
[quoted text clipped - 40 lines]
> ( The service is deployed on IIS server, and then the admin will use another
> application to configure that web service)
Hung Ngo - 26 May 2006 06:54 GMT
I see the solution if I use many <protection> element in single policy type
(ex: usernameForCertificateSecurity or mutualCertificate11Security...).
Now if I have many policy file, first is usernameForCertificateSecurity,
second is mutualCertificate11Security, and so on. Depend on what user chooses
the policy type, the Webservice will apply the coresponding policy file (just
one of them: username or mutual).
Thanks in advance,
Hung.
> Look at the PolicyOnRequestBody example in the QuickStart samples in the WSE
> 3.0 SDK. This shows how to selectivly apply policy to various methods within
[quoted text clipped - 44 lines]
> > ( The service is deployed on IIS server, and then the admin will use another
> > application to configure that web service)