Hi Asankha, I don't think there is a straight forward way to do this using WSAS.
At the server side you have to write a module to read the username/password. The below article has code on how to extract the username and password separately. http://wso2.org/library/3030#t2 I have implemented a client to send HTTP basic auth using the ESB client. http://wso2.org/files/authentication-mediator.zip This zip file contains a auth_client directory. It also contains a ant build file. So if you type the following it will send basic auth. ant stockquote -Daddurl=http://localhost:8080/soap/StockQuoteProxy -Dusername=alice -Dpassword=alice Thank you, Dimuthu On Tue, 2008-01-08 at 20:19 +0530, Asankha C. Perera wrote: > I was trying the example pointed out at : http://wso2.org/library/2989 > with WSAS 2.1 > > Is there any way for me to enable basic auth with http (NOT https - I > don't care if the password can be decrypted)? > > Also note that once I enable UT auth on https, the service no longer > works on http and the REST call > "http://localhost:9762/services/echo/echoString?in=WSO2WSASRocks!!!" > results in the message "<ns:echoStringResponse > xmlns:ns="http://echo.services.wsas.wso2.org"><return > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" > /></ns:echoStringResponse>" (not a denied error code or fault with a > meaningful message) > > thanks > asankha > > _______________________________________________ > Wsas-java-dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev _______________________________________________ Wsas-java-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev
