You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by mi...@apache.org on 2008/01/24 04:13:14 UTC
svn commit: r614781 -
/webservices/rampart/scratch/c/trust/c/samples/client/sts_client/client.c
Author: milinda
Date: Wed Jan 23 19:13:11 2008
New Revision: 614781
URL: http://svn.apache.org/viewvc?rev=614781&view=rev
Log:
Changes to sts client sample.
Modified:
webservices/rampart/scratch/c/trust/c/samples/client/sts_client/client.c
Modified: webservices/rampart/scratch/c/trust/c/samples/client/sts_client/client.c
URL: http://svn.apache.org/viewvc/webservices/rampart/scratch/c/trust/c/samples/client/sts_client/client.c?rev=614781&r1=614780&r2=614781&view=diff
==============================================================================
--- webservices/rampart/scratch/c/trust/c/samples/client/sts_client/client.c (original)
+++ webservices/rampart/scratch/c/trust/c/samples/client/sts_client/client.c Wed Jan 23 19:13:11 2008
@@ -21,17 +21,17 @@
axis2_char_t *appliesto = "http://oasis.open.org";
axis2_char_t *token = "oasis:names:tc:SAML:1.0:assertion";
- axis2_char_t *request_type = "http://schemas.xmlsoap.org/ws/2005/02/RST/Issue";
+ axis2_char_t *request_type = "http://schemas.xmlsoap.org/ws/2005/02/RST/Issue";
- trust_context_t *trust_ctx = NULL;
- trust_rst_t *rst = NULL;
+ trust_context_t *trust_ctx = NULL;
+ trust_rst_t *rst = NULL;
/* Set up the environment */
env = axutil_env_create_all("sts.log", AXIS2_LOG_LEVEL_TRACE);
/* Set end point reference of echo service */
- address = "http://localhost:8080/Security_Federation_SecurityTokenService_Indigo/Symmetric.svc";
+ address = "http://localhost:8080/axis2/services/saml_sts";
client_home = "/home/milinda/Projects/axis2c/deploy";
file_name = "./client.xml";
@@ -46,16 +46,16 @@
trust_sts_client_set_issuer_policy_location(sts_client, env, file_name);
trust_sts_client_set_service_policy_location(sts_client, env, file_name2);
- trust_ctx = trust_context_create(env);
- rst = trust_rst_create(env);
- trust_rst_set_wst_ns_uri(rst, env, "http://schemas.xmlsoap.org/ws/2005/02/trust");
- trust_rst_set_token_type(rst, env, token);
- trust_rst_set_appliesto(rst, env, appliesto);
- trust_rst_set_request_type(rst, env, request_type);
+ trust_ctx = trust_context_create(env);
+ rst = trust_rst_create(env);
+ trust_rst_set_wst_ns_uri(rst, env, "http://schemas.xmlsoap.org/ws/2005/02/trust");
+ trust_rst_set_token_type(rst, env, token);
+ trust_rst_set_appliesto(rst, env, appliesto);
+ trust_rst_set_request_type(rst, env, request_type);
- trust_context_set_rst(env, trust_ctx, rst);
+ trust_context_set_rst(env, trust_ctx, rst);
- trust_sts_client_request_security_token(sts_client, env, trust_ctx);
+ trust_sts_client_request_security_token(sts_client, env, trust_ctx);
trust_sts_client_free(sts_client, env);