On Wednesday, June 29, 2011 10:38:05 AM Anthony Webster wrote:
> Hi there,
> 
> I'm trying to add support for WS-Policy and I'm getting a rather
> strange behavior. I added the following to one of my two services :
> 
> @Policy(uri = "policies/modalitiesSearch.xml", placement =
> Policy.Placement.BINDING, includeInWSDL = true)
> 
> When I check the generate WSDL, I see *two* wsp:Policy elements with
> the same id (ModalitiesSearchImplServiceSoapBindingBindingPolicy) and
> *two* <wsp:PolicyReference elements within the binding element again
> refering to the same URI.
> 
> I strange thing is that when I comment out the other webservice (which
> has no associated policies), the generated wsdl is normal (only one
> policy declaration).
> 
> Any ideas?

That's very strange.  Not sure why another service would affect this at all.   
Can you create a small testcase that shows this?    Would be interesting to 
debug. :-(


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to