You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2007/02/09 05:03:15 UTC
svn commit: r505165 - in /webservices/sandesha/trunk/c/samples/rm_mtom:
Makefile.am rm_mtom_client.c
Author: damitha
Date: Thu Feb 8 20:03:14 2007
New Revision: 505165
URL: http://svn.apache.org/viewvc?view=rev&rev=505165
Log:
renamed the exec name
Modified:
webservices/sandesha/trunk/c/samples/rm_mtom/Makefile.am
webservices/sandesha/trunk/c/samples/rm_mtom/rm_mtom_client.c
Modified: webservices/sandesha/trunk/c/samples/rm_mtom/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_mtom/Makefile.am?view=diff&rev=505165&r1=505164&r2=505165
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_mtom/Makefile.am (original)
+++ webservices/sandesha/trunk/c/samples/rm_mtom/Makefile.am Thu Feb 8 20:03:14 2007
@@ -1,10 +1,10 @@
prgbindir=$(prefix)/bin/samples
-prgbin_PROGRAMS = rm_mtom
-samplesdir=$(prefix)/samples/client/rm_mtom
+prgbin_PROGRAMS = rm_mtom_1_0
+samplesdir=$(prefix)/samples/client/rm_mtom_1_0
samples_DATA=rm_mtom_client.c Makefile.am Makefile.in
-rm_mtom_SOURCES = rm_mtom_client.c mtom_util.c
+rm_mtom_1_0_SOURCES = rm_mtom_client.c mtom_util.c
-rm_mtom_LDADD = \
+rm_mtom_1_0_LDADD = \
-L$(AXIS2C_HOME)/lib \
-laxis2_util \
-laxis2_axiom \
Modified: webservices/sandesha/trunk/c/samples/rm_mtom/rm_mtom_client.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_mtom/rm_mtom_client.c?view=diff&rev=505165&r1=505164&r2=505165
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_mtom/rm_mtom_client.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_mtom/rm_mtom_client.c Thu Feb 8 20:03:14 2007
@@ -43,7 +43,6 @@
axis2_property_t *property = NULL;
axis2_listener_manager_t *listener_manager = NULL;
axis2_char_t *offered_seq_id = NULL;
- axis2_bool_t offer = AXIS2_FALSE;
int c;
const axis2_char_t *image_name = "resources/axis2.jpg";
axiom_node_t *ret_node = NULL;
@@ -55,7 +54,7 @@
/* Set end point reference of echo service */
/*address = "http://127.0.0.1:8888/axis2/services/RMSampleService";*/
address = "http://127.0.0.1:5555/axis2/services/RMSampleService";
- while ((c = AXIS2_GETOPT(argc, argv, ":a:o:")) != -1)
+ while ((c = AXIS2_GETOPT(argc, argv, ":a:")) != -1)
{
switch (c)
@@ -63,9 +62,6 @@
case 'a':
address = optarg;
break;
- case 'o':
- offer = AXIS2_ATOI(optarg);
- break;
case ':':
fprintf(stderr, "\nOption -%c requires an operand\n", optopt);
usage(argv[0]);
@@ -138,16 +134,13 @@
return AXIS2_FAILURE;
}
/* Offer sequence */
- if(offer)
+ offered_seq_id = axis2_uuid_gen(env);
+ property = axis2_property_create(env);
+ if(property)
{
- offered_seq_id = axis2_uuid_gen(env);
- property = axis2_property_create(env);
- if(property)
- {
- AXIS2_PROPERTY_SET_VALUE(property, env, AXIS2_STRDUP(offered_seq_id, env));
- AXIS2_OPTIONS_SET_PROPERTY(options, env, SANDESHA2_CLIENT_OFFERED_SEQ_ID,
- property);
- }
+ AXIS2_PROPERTY_SET_VALUE(property, env, AXIS2_STRDUP(offered_seq_id, env));
+ AXIS2_OPTIONS_SET_PROPERTY(options, env, SANDESHA2_CLIENT_OFFERED_SEQ_ID,
+ property);
}
/*payload = build_om_payload_for_mtom(env, image_name, "test1.jpg");
ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client, env, payload);
@@ -178,7 +171,6 @@
{
fprintf(stdout, "\n Usage : %s", prog_name);
fprintf(stdout, " [-o ADDRESS]");
- fprintf(stdout, " [-o OFFER]");
fprintf(stdout, " Options :\n");
fprintf(stdout, "\t-o OFFER \t seq offer value.. The"
" default offer value is 0(false) ../\n");
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org