|
Hi, nandana Can I use a policy to specify that the server only needs username and password tokens? The server does not need encryption, signature, etc. I used this policy in my server. <wsp:Policy wsu:Id="UsernameToken" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> <wsp:ExactlyOne> <wsp:All> <mtom:OptimizedMimeSerialization wsp:Optional="true" xmlns:mtom="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"/> <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient" xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" /> <ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy"> <ramp:passwordCallbackClass> net.sf.webcommand.ws.WsPWCallbackHandler </ramp:passwordCallbackClass> </ramp:RampartConfig> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> I got a null pointer exception following the tutorial. If I removed the mtom:OptimizedMimeSerialization, the client does send the message, but with a empty security header <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="true"> Did I write the policy correctly? thanks -jason Nandana Mihindukulasooriya wrote: Hi Daniel, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Axis2 with rampart sample, username hardcoded Daniel Woo
- AW: Axis2 with rampart sample, username ha... Matthias Wermund
- Re: Axis2 with rampart sample, username ha... Nandana Mihindukulasooriya
- Re: Axis2 with rampart sample, usernam... jason zhang
- Re: Axis2 with rampart sample, use... Nandana Mihindukulasooriya
- Re: Axis2 with rampart sample,... jason zhang
- Re: Axis2 with rampart sa... Nandana Mihindukulasooriya
- Re: Axis2 with rampar... jason zhang
- Re: Axis2 with rampart sa... jason zhang
- Axis2 client accessin... Phani
