Uhm... simple :) I'll try this solution (I've to do this by code).
Tnx again! Da: Glen Mazza [via CXF] [mailto:[email protected]] Inviato: mercoledì 24 aprile 2013 16:28 A: Pileggi Matteo Oggetto: Re: add security policy to wsdl (first) On 04/24/2013 10:22 AM, matpil wrote: > tnx for your reply. > maybe I'm wrong but in your examples I don't find a way to add a > <wsp:policy> to an exist wsdl. Umm...copy and paste? :) Choose a WSDL that already has the security policy statements you want and add it to your own WSDL. > Now I'm trying to read the wsdl with "javax.wsdl.Definition" to add the > security namespace > wsdlDefinition.addNamespace("wsp", > "http://schemas.xmlsoap.org/ws/2004/09/policy"); > wsdlDefinition.addNamespace("sp", > "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"); > and <wsp:policy>...</wsp:policy>. > Are you doing Java-first? There's not many security policy examples around for that. I had assumed it was only your first component you were doing Java-first, not the second where you wanted to add WS-Policy. Glen > Ok for the namespace... but I've some problem with "policy tag". > > Is it the best way or suggest another way? > > > Regars, > matpil > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/add-security-policy-to-wsdl-dynamically-tp5726642p5726713.html > Sent from the cxf-user mailing list archive at Nabble.com. ________________________________ If you reply to this email, your message will be added to the discussion below: http://cxf.547215.n5.nabble.com/add-security-policy-to-wsdl-dynamically-tp5726642p5726714.html To unsubscribe from add security policy to wsdl dynamically, click here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5726642&code=bWF0dGVvLnBpbGVnZ2lAY2VydmVkZ3JvdXAuY29tfDU3MjY2NDJ8MTcwNzExMjc0NA==>. NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://cxf.547215.n5.nabble.com/R-add-security-policy-to-wsdl-first-tp5726715.html Sent from the cxf-user mailing list archive at Nabble.com.
