Topic
  • 3 replies
  • Latest Post - ‏2012-10-11T09:50:38Z by Daviiid
Daviiid
Daviiid
284 Posts

Pinned topic Delete WSDLCachePolicy in deployment policy

‏2012-10-09T14:12:18Z |
Hello

I have configure a wsdl cache policy in a WSP

Here is the configuration in the export.zip WSP

<WSDLCachePolicy>
        <Match>*</Match>
        <TTL>15</TTL>
</WSDLCachePolicy>


How can i create a deployment policy which delete this configuration.

Thanks all
Updated on 2014-03-25T02:47:32Z at 2014-03-25T02:47:32Z by iron-man
  • swlinn
    swlinn
    1348 Posts

    Re: Delete WSDLCachePolicy in deployment policy

    ‏2012-10-09T16:23:49Z  
    In general, deployment policies are somewhat difficult with a complex property, but to delete a single complex property (eg, not a repeating element) you should should be able to do this. The Builder in the Deployment Policy GUI will only let you choose a child element and not the overall WSDLCachePolicy element, but once it fills in the match with the actual node names, you can go back and remove the child element, so in your case,

    My original match was */*/services/ws-proxy?Name=.*&Property=WSDLCachePolicy/TTL, but I removed the child node. This should work

    */*/services/ws-proxy?Name=.*&Property=WSDLCachePolicy Delete Configuration

    Regards,
    Steve
  • Daviiid
    Daviiid
    284 Posts

    Re: Delete WSDLCachePolicy in deployment policy

    ‏2012-10-11T09:47:37Z  
    • swlinn
    • ‏2012-10-09T16:23:49Z
    In general, deployment policies are somewhat difficult with a complex property, but to delete a single complex property (eg, not a repeating element) you should should be able to do this. The Builder in the Deployment Policy GUI will only let you choose a child element and not the overall WSDLCachePolicy element, but once it fills in the match with the actual node names, you can go back and remove the child element, so in your case,

    My original match was */*/services/ws-proxy?Name=.*&Property=WSDLCachePolicy/TTL, but I removed the child node. This should work

    */*/services/ws-proxy?Name=.*&Property=WSDLCachePolicy Delete Configuration

    Regards,
    Steve
    Hi Steeve

    thanks for response

    In my deployement policy (screen shot), i use a delete configuration with your suggestion

    The export objet had still WSDLCachePolicy...

    strange.
  • Daviiid
    Daviiid
    284 Posts

    Re: Delete WSDLCachePolicy in deployment policy

    ‏2012-10-11T09:50:38Z  
    • swlinn
    • ‏2012-10-09T16:23:49Z
    In general, deployment policies are somewhat difficult with a complex property, but to delete a single complex property (eg, not a repeating element) you should should be able to do this. The Builder in the Deployment Policy GUI will only let you choose a child element and not the overall WSDLCachePolicy element, but once it fills in the match with the actual node names, you can go back and remove the child element, so in your case,

    My original match was */*/services/ws-proxy?Name=.*&Property=WSDLCachePolicy/TTL, but I removed the child node. This should work

    */*/services/ws-proxy?Name=.*&Property=WSDLCachePolicy Delete Configuration

    Regards,
    Steve
    oops..

    It works..

    Thanks and sorry :)