...
Table of Contents | ||
---|---|---|
|
After this you simply need to run the client.
Step 1 - Secure Web Service with a Claim-aware Security Policy
...
Because of this limitation, we need to follow a programmatic approach to insert the token into the Web Service request and forward to Axis2Service. You can find the complete working client in this sourceforge account.
Anchor | ||||
---|---|---|---|---|
|
- Check out the complete source from
https://sourceforge.net/p/charithablogsam/code/ci/master/tree/
and import the source into your IDE. - Go to
<IS_HOME>/bin
and type ant. This copies the necessary client libraries into<IS_HOME>/repository/lib directory
. - Add
<IS_HOME>/repository/lib
directory to your IDE class path. - Also add
<IS_HOME>/repository/components/lib/bcprov-jdk15-132.jar
to the class path. - Modify Axis2ServiceClient according to the file paths in your system wherever necessary. E.g., policy stsPolicy = loadSTSPolicy ("
/resources/policies/sts.ut.policy.xml
"). - Run the client.
...