I have a secured web service on wso2esb. It is based on Username token.
Now, I want to create a standalone java program to invoke this web service. I m having hard time figuring out how to do this.
Can you please help me in this.
Thanks and Regards.
You could try taking a look at the Rampart samples. Basic Sample 01 is UsernameToken Authentication.
The source code is here: link
I found this tutorial
http://wso2.com/library/3190
Hope this helps
Access to a secure web service in this way, I presume you use UT scenario:
At this point you coul use the stub just like another web service call.
the method loadPolicy:
And an example policy file: