Hi Colm, Thanks for your answer, and sorry if I'm not clear enough explaining my problem. My problem is, the server requires digest password instead of plain password. On the other hand, in CXF (or probably WSS4J), if I set:
properties.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT) I always get the "plain password" instead of digest password. In the end, what I want is SOAP headers that contains: <wsse:Password Type=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText "> Base64 ( SHA-1 ( nonce + created + password ) ) </wsse:Password> I know that there's strong recommendation to use #PasswordDigest instead of #PasswordText in this case, or even the server implementation doesn't follow "the standard" approach. But I don't have any kind of access to server other than WSDL and XSDs, so I have no choice. And if there's no direct configuration to set this up, could you (or probably anyone else) tell me, which point of extension (ex: classes to extends, interfaces to implements, etc) I could use to archive and solve this problem. Thanks, Resa On Fri, May 8, 2015 at 4:13 PM, Colm O hEigeartaigh <[email protected]> wrote: > I don't quite follow, you want to send password text instead of password > digest? If so just try: > > properties.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT) > > Colm. > > On Thu, May 7, 2015 at 10:47 PM, Resa Rahmatulloh <[email protected]> wrote: > > > Hi all, New member here :). > > > > I'm currently working with CXF client and want to send request to some WS > > server. I'd configured the header properly, but the server is ask > > #PasswordText instead of #PasswordDigest for <wsse:Password Type="" />. > > On the other side > > properties.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST) > > is always send #PasswordDigest. > > My questions is, how do I solve my problem? Is there any extension point > to > > resolve this? > > > > Thanks, > > Resa > > > > > > -- > Colm O hEigeartaigh > > Talend Community Coder > http://coders.talend.com >
