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 sa...@apache.org on 2005/12/21 05:06:42 UTC
svn commit: r358201 - in /webservices/axis2/trunk/c:
include/axis2_mep_client.h modules/core/clientapi/src/mep_client.c
Author: samisa
Date: Tue Dec 20 20:06:21 2005
New Revision: 358201
URL: http://svn.apache.org/viewcvs?rev=358201&view=rev
Log:
Added accessor for service context
Modified:
webservices/axis2/trunk/c/include/axis2_mep_client.h
webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c
Modified: webservices/axis2/trunk/c/include/axis2_mep_client.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_mep_client.h?rev=358201&r1=358200&r2=358201&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_mep_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_mep_client.h Tue Dec 20 20:06:21 2005
@@ -109,6 +109,7 @@
* @param string
*/
axis2_status_t (AXIS2_CALL *set_wsa_action)(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_char_t *wsa_action);
+ axis2_svc_ctx_t* (AXIS2_CALL *get_svc_ctx)(struct axis2_mep_client *mep_client, axis2_env_t **env);
axis2_status_t (AXIS2_CALL *free)(struct axis2_mep_client *mep_client,
axis2_env_t **env);
};
@@ -125,6 +126,8 @@
AXIS2_DECLARE(axis2_mep_client_t*) axis2_mep_client_create(axis2_env_t **env,
axis2_svc_ctx_t *svc_ctx,
axis2_char_t *mep);
+
+axis2_msg_ctx_t* AXIS2_CALL axis2_two_way_send(axis2_env_t **env, axis2_msg_ctx_t *msg_ctx);
/************************** Start of function macros **************************/
@@ -137,6 +140,7 @@
#define AXIS2_MEP_CLIENT_SET_SOAP_VERSION_URI(mep_client, env, soap_version_uri) ((mep_client)->ops->set_soap_version_uri(mep_client, env, soap_version_uri))
#define AXIS2_MEP_CLIENT_SET_SOAP_ACTION(mep_client, env, soap_action) ((mep_client)->ops->set_soap_action(mep_client, env, soap_action))
#define AXIS2_MEP_CLIENT_SET_WSA_ACTION(mep_client, env, wsa_action) ((mep_client)->ops->set_wsa_action(mep_client, env, wsa_action))
+#define AXIS2_MEP_CLIENT_GET_SVC_CTX(mep_client, env) ((mep_client)->ops->get_svc_ctx(mep_client, env))
#define AXIS2_MEP_CLIENT_FREE(mep_client, env) ((mep_client)->ops->free (mep_client, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c?rev=358201&r1=358200&r2=358201&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c Tue Dec 20 20:06:21 2005
@@ -52,6 +52,7 @@
axis2_status_t AXIS2_CALL axis2_mep_client_set_soap_action(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_char_t *soap_action);
axis2_status_t AXIS2_CALL axis2_mep_client_set_wsa_action(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_char_t *wsa_action);
axis2_char_t* AXIS2_CALL axis2_get_transport_from_url(axis2_char_t *url, axis2_env_t **env);
+axis2_svc_ctx_t* AXIS2_CALL axis2_mep_client_get_svc_ctx(struct axis2_mep_client *mep_client, axis2_env_t **env);
axis2_status_t AXIS2_CALL axis2_mep_client_free (struct axis2_mep_client *mep_client,
axis2_env_t **env);
@@ -117,6 +118,7 @@
mep_client_impl->mep_client.ops->set_soap_version_uri = axis2_mep_client_set_soap_version_uri;
mep_client_impl->mep_client.ops->set_soap_action = axis2_mep_client_set_soap_action;
mep_client_impl->mep_client.ops->set_wsa_action = axis2_mep_client_set_wsa_action;
+ mep_client_impl->mep_client.ops->get_svc_ctx = axis2_mep_client_get_svc_ctx;
mep_client_impl->mep_client.ops->free = axis2_mep_client_free;
return &(mep_client_impl->mep_client);
@@ -428,6 +430,12 @@
}
return transport;
+}
+
+axis2_svc_ctx_t* AXIS2_CALL axis2_mep_client_get_svc_ctx(struct axis2_mep_client *mep_client, axis2_env_t **env)
+{
+ AXIS2_FUNC_PARAM_CHECK(mep_client, env, AXIS2_FAILURE);
+ return AXIS2_INTF_TO_IMPL(mep_client)->svc_ctx;
}
axis2_status_t AXIS2_CALL axis2_mep_client_free (struct axis2_mep_client *mep_client,