Go to identity servers bin folder [wso2is-4.1.0/bin] and issue the command "ant" to get the required libraries, (make sure you have installed Apache Ant)
wso2is-4.1.0/bin$ ant
and then after building the ant script, go to the location wso2is-4.1.0/repository/lib and see the required libraries.
rampart-policy_1.6.1-wso2v8.jar rampart-core_1.6.1-wso2v8.jar rampart-trust_1.6.1-wso2v8.jar wss4j_1.5.11-wso2v5.jar axis2_1.6.1-wso2v8.jar axiom_1.2.11-wso2v3.jar
make sure you use above versions in your class path of the client.