You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/06/27 21:35:52 UTC
svn commit: r551288 -
/webservices/axis2/trunk/c/src/core/clientapi/op_client.c
Author: dinesh
Date: Wed Jun 27 12:35:51 2007
New Revision: 551288
URL: http://svn.apache.org/viewvc?view=rev&rev=551288
Log:
xmpp transport support
Modified:
webservices/axis2/trunk/c/src/core/clientapi/op_client.c
Modified: webservices/axis2/trunk/c/src/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/op_client.c?view=diff&rev=551288&r1=551287&r2=551288
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/op_client.c Wed Jun 27 12:35:51 2007
@@ -333,17 +333,20 @@
property = axis2_options_get_property(op_client->options, env,
AXIS2_TARGET_EPR);
if(property)
- {
+ {
to_epr = axutil_property_get_value(property, env);
- }
+ }
+
if(!to_epr)
- {
+ {
to_epr = axis2_options_get_to(op_client->options, env);
- }
+ }
+
if(!to_epr)
- {
+ {
to_epr = axis2_msg_ctx_get_to(msg_ctx, env);
- }
+ }
+
transport_out = axis2_op_client_infer_transport(op_client, env, to_epr);
}
@@ -374,7 +377,7 @@
}
}
- if(!( axis2_msg_ctx_get_transport_in_desc(msg_ctx, env)))
+ if(!(axis2_msg_ctx_get_transport_in_desc(msg_ctx, env)))
{
axis2_msg_ctx_set_transport_in_desc(msg_ctx, env, transport_in);
}
@@ -801,6 +804,11 @@
{
transport_enum = AXIS2_TRANSPORT_ENUM_HTTPS;
}
+ else if (!axutil_strcmp (transport, "xmpp"))
+ {
+ transport_enum = AXIS2_TRANSPORT_ENUM_XMPP;
+ }
+
conf_ctx = axis2_svc_ctx_get_conf_ctx(op_client->svc_ctx, env);
if (conf_ctx)
@@ -1032,7 +1040,7 @@
status = axis2_engine_send(engine, env, msg_ctx);
- axis2_engine_free(engine, env);
+ axis2_engine_free(engine, env);
engine = NULL;
if (status != AXIS2_SUCCESS)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org