You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ka...@apache.org on 2007/01/05 10:37:02 UTC
svn commit: r492950 - in /webservices/axis2/trunk/c/rampart/samples:
callback/pwcb.c client/enc_echo/echo.c
Author: kaushalye
Date: Fri Jan 5 01:37:01 2007
New Revision: 492950
URL: http://svn.apache.org/viewvc?view=rev&rev=492950
Log:
Made few changes in samples
Modified:
webservices/axis2/trunk/c/rampart/samples/callback/pwcb.c
webservices/axis2/trunk/c/rampart/samples/client/enc_echo/echo.c
Modified: webservices/axis2/trunk/c/rampart/samples/callback/pwcb.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/samples/callback/pwcb.c?view=diff&rev=492950&r1=492949&r2=492950
==============================================================================
--- webservices/axis2/trunk/c/rampart/samples/callback/pwcb.c (original)
+++ webservices/axis2/trunk/c/rampart/samples/callback/pwcb.c Fri Jan 5 01:37:01 2007
@@ -46,6 +46,10 @@
{
pw = "password";
}
+ else if (0 == AXIS2_STRCMP(username, "bob"))
+ {
+ pw = "bobPW";
+ }
/*These are for sample keystores*/
else if (0 == AXIS2_STRCMP(username, "a"))
{
Modified: webservices/axis2/trunk/c/rampart/samples/client/enc_echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/samples/client/enc_echo/echo.c?view=diff&rev=492950&r1=492949&r2=492950
==============================================================================
--- webservices/axis2/trunk/c/rampart/samples/client/enc_echo/echo.c (original)
+++ webservices/axis2/trunk/c/rampart/samples/client/enc_echo/echo.c Fri Jan 5 01:37:01 2007
@@ -65,12 +65,7 @@
options = axis2_options_create(env);
AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
AXIS2_OPTIONS_SET_ACTION(options, env,
- "http://ws.apache.org/axis2/c/samples/echoString");
-
- /*This is required to do interop with rampart/java*/
- AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11);
- AXIS2_OPTIONS_SET_SOAP_ACTION(options, env,
- "urn:echo");
+ "http://ws.apache.org/axis2/c/samples/echoString");
@@ -112,8 +107,6 @@
/* Set service client options */
AXIS2_SVC_CLIENT_SET_OPTIONS(svc_client, env, options);
- /* Engage addressing module */
- /*AXIS2_SVC_CLIENT_ENGAGE_MODULE(svc_client, env, AXIS2_MODULE_ADDRESSING);*/
/* Build the SOAP request message payload using OM API.*/
payload = build_om_payload_for_echo_svc(env);
@@ -162,10 +155,10 @@
axiom_namespace_t *ns1 = NULL;
axis2_char_t *om_str = NULL;
- ns1 = axiom_namespace_create(env, "http://sample05.samples.rampart.apache.org/xsd", "ns1");
- echo_om_ele = axiom_element_create(env, NULL, "echo", ns1, &echo_om_node);
- text_om_ele = axiom_element_create(env, echo_om_node, "param0", NULL, &text_om_node);
- AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, "echo55555", text_om_node);
+ ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples", "ns1");
+ echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
+ text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
+ AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, "echo5", text_om_node);
om_str = AXIOM_NODE_TO_STRING(echo_om_node, env);
if (om_str)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org