Michal, Knowing that you have tried it before and came up with an alternative, I'd like to follow suit. Can you post your workaround in detail please, preferably a working example (as I am a newbie to ServiceMix). Thanks.
On 8/6/07, Michal <[EMAIL PROTECTED]> wrote: > > > I was looking for the same feature. Password supposed to be provided by > CallbackHandler which is constructed in WSSecurityHandler (see handler > field). > However, it seems that currently (FUSE 3.2.0.0) the handler does not > support > it - the method throws exception UnsupportedCallbackException. > > When is it going to be handled? > Is there any other way to achieve usernametoken security (in provider > endpoint)? > > Currently, the only workaround that I come up is to have an intermediary > step which adds to SOAP_HEADERS UsernameToken nodes. > > > > Simon Sekat wrote: > > > > Guillaume, > > > > Thanks for the response. Any direction on how I can specify the > password > > and password type (e.g. wsse:PasswordText or > wsse:PasswordDigest)? Thanks > > again. > > > > On 8/6/07, Guillaume Nodet <[EMAIL PROTECTED]> wrote: > >> > >> You should try something along those lines: > >> > >> <http:policies> > >> <soap:ws-security sendAction="UsernameToken" username="smx" /> > >> </http:policies> > >> > >> Cheers, > >> Guillaume Nodet > >> > >> On 8/6/07, Simon Sekat <[EMAIL PROTECTED]> wrote: > >> > My question still stands. Could anyone give direction on developing > a > >> HTTP > >> > provider endpoint invoking web services that use WS UsernameToken? > >> > > >> > Thanks. > >> > > >> > On 8/3/07, Simon Sekat <[EMAIL PROTECTED]> wrote: > >> > > > >> > > I was asking for HTTP provider endpoint. > >> > > > >> > > But I thank you for your suggestion about http consumer. Would you > >> have > >> > > any HTTP consumer examples that I can learn from. Thank you. > >> > > > >> > > On 8/3/07, netflexity <[EMAIL PROTECTED]> wrote: > >> > > > > >> > > > > >> > > > I've done it before by adding http policy to http consumer: > >> > > > > >> > > > <http:policies> > >> > > > <soap:ws-security receiveAction="NoSecurity > >> UsernameToken"/> > >> > > > </http:policies> > >> > > > > >> > > > > >> > > > Simon Sekat wrote: > >> > > > > > >> > > > > I'd like to invoke an external web service that requires WS > >> > > > UsernameToken > >> > > > > header. The following is an example request that carries > >> username, > >> > > > nonce, > >> > > > > digested password, created timestamp to the service. > >> > > > > > >> > > > > http://incubator.apache.org/servicemix/ws-security.html talked > >> about > >> > > > how a > >> > > > > HTTP consumer endpoint uses WS UsernameToken. Can someone > >> enlighten > >> > > > me > >> > > > > how > >> > > > > to develop a HTTP provider endpoint using WS UsernameToken? > >> Thank > >> > > > you. > >> > > > > > >> > > > > <?xml version="1.0" encoding="UTF-8"?> > >> > > > >> <soapenv:Envelope > >> > > > >> xmlns:soapenv=" > >> http://schemas.xmlsoap.org/soap/envelope/ > >> " > >> > > > >> xmlns:xsd="http://www.w3.org/2001/XMLSchema" > >> > > > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > >> > > > >> <soapenv:Header> > >> > > > >> <wsse:Security > >> > > > >> > >> > > > >> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > >> > > > >> soapenv:mustUnderstand="1" > >> > > > >> xmlns:wsse=" > >> > > > >> > >> > > > > >> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd > >> > > > >> "> > >> > > > >> <wsse:UsernameToken wsu:Id="LOGIN" > >> > > > >> xmlns:wsu=" > >> > > > >> > >> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd > >> > > > > >> > > > >> "> > >> > > > >> <wsse:Username>admin</wsse:Username> > >> > > > >> <wsse:Password > >> > > > >> Type=" > >> > > > >> > >> > > > > >> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest > >> > > > >> "> > >> > > > >> eDQUHeku0Mr188gx8Eo88Ik1tK8= > >> > > > >> </wsse:Password> > >> > > > >> > >> <wsse:Nonce>MTE4NjA4NDcyNDYxMA==</wsse:Nonce> > >> > > > >> > >> <wsu:Created>2007-08-02T19:58:44Z</wsu:Created> > >> > > > >> </wsse:UsernameToken> > >> > > > >> </wsse:Security> > >> > > > >> </soapenv:Header> > >> > > > >> <soapenv:Body> > >> > > > >> <Login > >> > > > >> xmlns=" > >> http://testserver.com/test1/TWebService/Login > >> > > > "> > >> > > > >> <userLoginId>admin</userLoginId> > >> > > > >> </Login> > >> > > > >> </soapenv:Body> > >> > > > >> </soapenv:Envelope> > >> > > > >> > >> > > > > > >> > > > > -- > >> > > > > > >> > > > > Simon S. > >> > > > > > >> > > > > > >> > > > > >> > > > -- > >> > > > View this message in context: > >> > > > > >> > http://www.nabble.com/How-can-I-develop-a-HTTP-provider-endpoint-invoking-web-services-that-use-WS-UsernameToken--tf4212467s12049.html#a11989341 > >> > > > Sent from the ServiceMix - User mailing list archive at > Nabble.com. > >> > > > > >> > > > > >> > > > >> > > > >> > > -- > >> > > > >> > > Simon S. > >> > > >> > > >> > > >> > > >> > -- > >> > > >> > Simon S. > >> > > >> > >> > >> -- > >> Cheers, > >> Guillaume Nodet > >> ------------------------ > >> Principal Engineer, IONA > >> Blog: http://gnodet.blogspot.com/ > >> > > > > > > > > -- > > > > Simon S. > > > > > > -- > View this message in context: > http://www.nabble.com/How-can-I-develop-a-HTTP-provider-endpoint-invoking-web-services-that-use-WS-UsernameToken--tf4212467s12049.html#a12016386 > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Simon S.
