You would need to add a repo to the pom file to refer to the apache
cxf snapshots.
I did not need to have that as I had already compiled cxf locally.

I updated the source to reference the snapshot repo

Give it a go now

The reason for the snapshots is because this project has been used to
test out some of the ws-policy features in cxf 2.7.4-snapshot.



On Mon, Feb 18, 2013 at 6:15 PM, lv <[email protected]> wrote:
>
> Thank you.
> I  run mvn compile, but I get errors:
>
> Failed to execute goal on project JavaFirst: Could not resolve dependenc
> ies for project com.pellcorp:JavaFirst:jar:0.1-SNAPSHOT: The following 
> artifacts
>  could not be resolved: 
> org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.4-SNAPSHOT,
>  org.apache.cxf:cxf-rt-transports-http-jetty:jar:2.7.4-SNAPSHOT, 
> org.apache.cxf:
> cxf-rt-ws-policy:jar:2.7.4-SNAPSHOT, 
> org.apache.cxf:cxf-rt-ws-security:jar:2.7.4
> -SNAPSHOT: Could not find artifact 
> org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.
>
> How to fix these problems?
>
>
>> Date: Mon, 18 Feb 2013 14:28:47 +1100
>> Subject: RE: Simple questions about username token example
>> From: [email protected]
>> To: [email protected]
>>
>> There are a few in ws-security systests specifically for use with ws policy.
>>
>> I also have some here:
>>
>> https://github.com/pellcorp/cxf/tree/master/JavaFirst
>>
>> Sent from my Galaxy S2
>> On Feb 18, 2013 1:10 PM, "lv" <[email protected]> wrote:
>>
>> >
>> > Thank you!
>> > Do you have example about web service security - username token which is
>> > done by java first?
>> >
>> > > Date: Sun, 17 Feb 2013 14:55:42 -0500
>> > > From: [email protected]
>> > > To: [email protected]
>> > > Subject: Re: Simple questions about username token example
>> > >
>> > > You can dynamically set the username and password for the client to use
>> > > following these examples:
>> > >
>> > http://stackoverflow.com/questions/5906154/apache-cxf-credentials-not-being-sent-from-wss4joutinterceptor
>> > >
>> > > This blog article may provide a more helpful UT example:
>> > > http://www.jroller.com/gmazza/entry/cxf_usernametoken_profile
>> > >
>> > > Glen
>> > >
>> > > On 02/17/2013 05:04 AM, lv wrote:
>> > > > I have created a web services from java first .  I need to add web
>> > services security - username token.
>> > > > I find UsernameTokenRequest.xml  in
>> > \apache-cxf-2.7.0-src\systests\ws-security\src\test\resources\org\apache\cxf\systest\ws\security\test-data
>> > > > This xml file contains:
>> > > >  <wss:UsernameToken>
>> > > >             <wss:Username>alice</wss:Username>
>> > > >             <wss:Password Type="
>> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest
>> > ">FPqPsaAp7hWASdknPsbfZxIoDVI=</wss:Password>
>> > > >             <wss:Nonce EncodingType="
>> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
>> > ">OJBNzEGDmTiD/lbeA+UDeg==</wss:Nonce>
>> > > >             <wsu:Created xmlns:wsu="
>> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
>> > ">2009-12-10T21:12:59.100Z</wsu:Created>
>> > > >   </wss:UsernameToken>
>> > > >
>> > > > Does it mean only alice with correct password can login?
>> > > >
>> > > > If there are thousands of users need to provide username and password,
>> > how to write the xml file?
>> > > >
>> > > > Thanks.
>> > > >
>> > >
>> >
>

Reply via email to