Converting HTTP Basic Authentication to WS-Security Username Token
Web Service Clients send user name and password via HTTP Basic Authentication, but the Web service is secured using Username Token (WS-Security) and you do not have any control over the Web service. Dimuthu Leelarathne, Technical Lead at WSO2, explains how to convert HTTP Basic Authentication to WS-Security Username Token in her article.
For relative information, you can also see HTTP Basic Authentication over a Proxy Server.