Re: Contract First Development and WSE 3.0 Policy Files



Hi Chris,

What is the base class for IMTOMUploader ?. In order to use the attribute
Policy, the base class must be a WebService or SoapService class.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

"Chris Mullins" <cmullins@xxxxxxxxx> wrote in message
news:u5PWfJoiGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
I've built a Web Service using the new VS.NET 2005 Contract-First
methodology - define an Interface, put the "WebMethod" attributes on
there, and than have a concrete class implement the interface. This works
great, and really helps with versioning issues.

The problem is, I'm trying to get this to work with WSE 3.0 policy files,
and not having any luck.

My class definition looks like:
[WebService(Namespace = http://www.mynamespace.com/mtomhost)]
[Policy("ServicePolicy")]
public class MTOMHost : IMTOMUploader

This doesn't seem to do anything, and even changing the policy name to
some non-existant ("BogusPolicy") doesn't have any affect. Does WSE 3.0
and the policy assertions with with the contract-first approach for web
service development?

--
Chris Mullins



.



Relevant Pages

  • Re: WSE 3.0 - Apply Policy w/out Policy Attribute?
    ... You can develop a base class for your services, and set the policy in the ... public class MyWebServiceBase: WebService ... you need to modify the web services to use a different base class. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Down grade to WSE 2.0 from WSE 3.0
    ... understand the configuration in order to change the URL and the Certificate ... I can't just configure the client assembly using the WSE tool, ... I was hoping to manually code the Policy and Assertions in code which ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Upgrading WSE 1.0 to WSE 3.0
    ... \par Microsoft Online Support ... \par Subject: Re: Upgrading WSE 1.0 to WSE 3.0 ... \par Once I've gone through this wizard and it creates a policy cache.config file ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Upgrading WSE 1.0 to WSE 3.0
    ... Once I've gone through this wizard and it creates a policy cache.config file ... IPasswordprovider in WSE 1.0, I guess this is now redundant? ... > wizard to build a build-in policy assertion. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: PolicyVerificationException: WSE464: No policy could be found
    ... When I initially used the WSE 2.0 policy wizard to configure the Web Service ... side I entered the name of the service to secure which was ... When I secured only web service and not the web client, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)