You can find #InternalTransportAndUsernamePolicy in configuration: CXF/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/server/javafirstserver.xml
Cheers, Andrei. > -----Original Message----- > From: lv [mailto:[email protected]] > Sent: Freitag, 21. Dezember 2012 09:44 > To: [email protected] > Subject: RE: How to create web security policy to WSDL using java code? > > > Thank you. In public interface JavaFirstPolicyService, where is the file of > #InternalTransportAndUsernamePolicy? > > > Date: Sun, 16 Dec 2012 09:35:27 +1100 > > Subject: Re: How to create web security policy to WSDL using java code? > > From: [email protected] > > To: [email protected] > > > > Java first ws-policy works quite nicely. You can use annotations on > > the sei or you can configure this from spring and use a policy > > expression bean to configure what policies are applied to what operations. > > > > The systests have good examples. Search for Java first > > > > Sent from my Galaxy S2 > > On Dec 15, 2012 2:25 AM, "Ladislav Lenčucha" > > <[email protected]> > > wrote: > > > > > Hi, > > > > > > messages are not send or received to/from WSDL, but to/from web > service. > > > WSDL only describes the WS.. > > > > > > Anyway, there are plenty of examples, it depends on the detail you > > > need. Do you have SOAP or REST (jaxws or jaxrs endpoint)? Generally, > > > you can use filters or interceptors. Check the following articles out: > > > http://cxf.apache.org/docs/secure-jax-rs-services.html > > > http://cxf.apache.org/docs/ws-security.html > > > > > > > > > -- > > > S pozdravom > > > Ladislav Lenčucha > > > [email protected] > > > > > > > > > > > > On Fri, Dec 14, 2012 at 7:43 AM, lv <[email protected]> wrote: > > > > > > > > > > > I embed cxf in spring and create web services using java code. IOS > > > devices > > > > get or send message to these WSDL. > > > > I browse articles of cxf apache website because I need to add > > > > security (such security policy) to web services. > > > > Is there any sample code or document about how add security to web > > > > services? > > > > Thanks a lot! > > > > > > > >
