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 2006/05/30 15:49:56 UTC
svn commit: r410283 - /webservices/axis2/trunk/c/include/axis2_svc_client.h
Author: samisa
Date: Tue May 30 06:49:56 2006
New Revision: 410283
URL: http://svn.apache.org/viewvc?rev=410283&view=rev
Log:
Replaced tabs with spaces
Modified:
webservices/axis2/trunk/c/include/axis2_svc_client.h
Modified: webservices/axis2/trunk/c/include/axis2_svc_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc_client.h?rev=410283&r1=410282&r2=410283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_client.h Tue May 30 06:49:56 2006
@@ -36,12 +36,12 @@
#include <axis2_op_client.h>
/** Name of anonymous service */
-#define AXIS2_ANON_SERVICE "__ANONYMOUS_SERVICE__"
+#define AXIS2_ANON_SERVICE "__ANONYMOUS_SERVICE__"
/** Operation names for operations representing different MEPs */
-#define AXIS2_ANON_OUT_ONLY_OP "__OPERATION_OUT_ONLY__"
-#define AXIS2_ANON_ROBUST_OUT_ONLY_OP "__OPERATION_ROBUST_OUT_ONLY__"
-#define AXIS2_ANON_OUT_IN_OP "__OPERATION_OUT_IN__"
+#define AXIS2_ANON_OUT_ONLY_OP "__OPERATION_OUT_ONLY__"
+#define AXIS2_ANON_ROBUST_OUT_ONLY_OP "__OPERATION_ROBUST_OUT_ONLY__"
+#define AXIS2_ANON_OUT_IN_OP "__OPERATION_OUT_IN__"
#ifdef __cplusplus
@@ -72,8 +72,8 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @return the axis service
*/
- axis2_svc_t* (AXIS2_CALL *
- get_svc)(
+ axis2_svc_t* (AXIS2_CALL *
+ get_svc)(
struct axis2_svc_client *svc_client,
axis2_env_t **env);
@@ -84,11 +84,11 @@
* @param options pointer to options struct to be set
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- set_options)(
+ axis2_status_t (AXIS2_CALL *
+ set_options)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_options_t *options);
+ axis2_env_t **env,
+ axis2_options_t *options);
/**
* Gets options used by service client
@@ -97,7 +97,7 @@
* @return a pointer to the options struct
*/
axis2_options_t* (AXIS2_CALL *
- get_options)(
+ get_options)(
struct axis2_svc_client *svc_client,
axis2_env_t **env);
@@ -109,11 +109,11 @@
* @param options pointer to options struct to be set
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- set_override_options)(
+ axis2_status_t (AXIS2_CALL *
+ set_override_options)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_options_t *override_options);
+ axis2_env_t **env,
+ axis2_options_t *override_options);
/**
* Gets the overriding options
@@ -121,8 +121,8 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @return pointer to overriding options struct
*/
- axis2_options_t* (AXIS2_CALL *
- get_override_options)(
+ axis2_options_t* (AXIS2_CALL *
+ get_override_options)(
struct axis2_svc_client *svc_client,
axis2_env_t **env);
@@ -133,11 +133,11 @@
* @param module_name name of the module to be engaged
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- engage_module)(
+ axis2_status_t (AXIS2_CALL *
+ engage_module)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_char_t *module_name);
+ axis2_env_t **env,
+ axis2_char_t *module_name);
/**
* Dis-engages the named module
@@ -146,12 +146,12 @@
* @param module_name name of the module to be dis-engaged
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- disengage_module)(
+ axis2_status_t (AXIS2_CALL *
+ disengage_module)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_char_t *module_name);
-
+ axis2_env_t **env,
+ axis2_char_t *module_name);
+
/**
* Adds an XML element as a header to be sent to server side.
* This allows users to go a bit beyond the simple XML in/out pattern, and
@@ -161,11 +161,11 @@
* @param header om node representing the SOAP header in XML
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- add_header)(
+ axis2_status_t (AXIS2_CALL *
+ add_header)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_om_node_t *header);
+ axis2_env_t **env,
+ axis2_om_node_t *header);
/**
* Removes all the headers added to service client
@@ -173,10 +173,10 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- remove_headers)(
+ axis2_status_t (AXIS2_CALL *
+ remove_headers)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env);
+ axis2_env_t **env);
/**
* Adds a simple header consisting of some text to be sent with interactions.
@@ -186,12 +186,12 @@
* @param header_text text of the header
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- add_header_with_text)(
+ axis2_status_t (AXIS2_CALL *
+ add_header_with_text)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_qname_t *header_name,
- axis2_char_t *header_text);
+ axis2_env_t **env,
+ axis2_qname_t *header_name,
+ axis2_char_t *header_text);
/**
* This is a simple client API to invoke a service operation who's MEP is
@@ -200,12 +200,12 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @param payload pointer to OM node representing the XML payload to be sent
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- axis2_status_t (AXIS2_CALL *
- send_robust)(
+ */
+ axis2_status_t (AXIS2_CALL *
+ send_robust)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_om_node_t *payload);
+ axis2_env_t **env,
+ axis2_om_node_t *payload);
/**
* This is a simple client API to invoke a service operation who's MEP is
@@ -219,14 +219,14 @@
* @param op_qname operation qname
* @param payload pointer to OM node representing the XML payload to be sent
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ */
axis2_status_t (AXIS2_CALL *
- send_robust_with_op_qname)(
+ send_robust_with_op_qname)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_qname_t *op_qname,
- axis2_om_node_t *payload);
-
+ axis2_env_t **env,
+ axis2_qname_t *op_qname,
+ axis2_om_node_t *payload);
+
/**
* Sends a bit of XML and forgets about it. This API is used to interact with
* a service operation who's MEP is In-Only. That is, there is no
@@ -236,11 +236,11 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @param payload pointer to OM node representing the XML payload to be sent
*/
- void (AXIS2_CALL *
- fire_and_forget)(
+ void (AXIS2_CALL *
+ fire_and_forget)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_om_node_t *payload);
+ axis2_env_t **env,
+ axis2_om_node_t *payload);
/**
* Sends a bit of XML and forget about it. This API is used to interact with
@@ -256,12 +256,12 @@
* @param op_qname operation qname
* @param payload pointer to OM node representing the XML payload to be sent
*/
- void (AXIS2_CALL *
- fire_and_forget_with_op_qname)(
+ void (AXIS2_CALL *
+ fire_and_forget_with_op_qname)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_qname_t *op_qname,
- axis2_om_node_t *payload);
+ axis2_env_t **env,
+ axis2_qname_t *op_qname,
+ axis2_om_node_t *payload);
/**
* Sends XML request and receives XML response.
@@ -272,11 +272,11 @@
* @param payload pointer to OM node representing the XML payload to be sent
* @return pointer to OM node representing the XML response
*/
- axis2_om_node_t* (AXIS2_CALL *
- send_receive)(
+ axis2_om_node_t* (AXIS2_CALL *
+ send_receive)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_om_node_t *payload);
+ axis2_env_t **env,
+ axis2_om_node_t *payload);
/**
* Sends XML request and receives XML response.
@@ -291,12 +291,12 @@
* @param payload pointer to OM node representing the XML payload to be sent
* @return pointer to OM node representing the XML response
*/
- axis2_om_node_t* (AXIS2_CALL *
- send_receive_with_op_qname)(
+ axis2_om_node_t* (AXIS2_CALL *
+ send_receive_with_op_qname)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_qname_t *op_qname,
- axis2_om_node_t *payload);
+ axis2_env_t **env,
+ axis2_qname_t *op_qname,
+ axis2_om_node_t *payload);
/**
* Sends XML request and receives XML response, but do not block for response.
@@ -308,12 +308,12 @@
* @callback pointer to callback struct used to capture response
*/
- void (AXIS2_CALL *
- send_receive_non_blocking)(
+ void (AXIS2_CALL *
+ send_receive_non_blocking)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_om_node_t *payload,
- axis2_callback_t *callback);
+ axis2_env_t **env,
+ axis2_om_node_t *payload,
+ axis2_callback_t *callback);
/**
* Sends XML request and receives XML response, but do not block for response.
@@ -329,14 +329,14 @@
* @param payload pointer to OM node representing the XML payload to be sent
* @callback pointer to callback struct used to capture response
*/
- void (AXIS2_CALL *
- send_receive_non_blocking_with_op_qname)(
+ void (AXIS2_CALL *
+ send_receive_non_blocking_with_op_qname)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_qname_t *op_qname,
- axis2_om_node_t *payload,
- axis2_callback_t *callback);
-
+ axis2_env_t **env,
+ axis2_qname_t *op_qname,
+ axis2_om_node_t *payload,
+ axis2_callback_t *callback);
+
/**
* Creates an op_client for a specific operation. This is the way one can
* create a full functional MEP client which can be used to exchange messages
@@ -346,11 +346,11 @@
* @param op_qname axis2_qname_t of the operation
* @return pointer to op_client configured to talk to the given operation
*/
- axis2_op_client_t* (AXIS2_CALL *
- create_op_client)(
+ axis2_op_client_t* (AXIS2_CALL *
+ create_op_client)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_qname_t *op_qname);
+ axis2_env_t **env,
+ axis2_qname_t *op_qname);
/**
* This will close the output stream and/or remove entry from waiting
@@ -359,10 +359,10 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- finalize_invoke)(
+ axis2_status_t (AXIS2_CALL *
+ finalize_invoke)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env);
+ axis2_env_t **env);
/**
* Gets the from EPR
@@ -372,21 +372,21 @@
* @return pointer to the epr struct
*/
axis2_endpoint_ref_t* (AXIS2_CALL *
- get_my_epr)(
+ get_my_epr)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_char_t *transport);
-
+ axis2_env_t **env,
+ axis2_char_t *transport);
+
/**
* Gets the target EPR
* @param svc_client pointer to service client struct
* @param env double pointer to environment struct. MUST NOT be NULL
* @return pointer to the epr struct
*/
- axis2_endpoint_ref_t* (AXIS2_CALL *
- get_target_epr)(
+ axis2_endpoint_ref_t* (AXIS2_CALL *
+ get_target_epr)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env);
+ axis2_env_t **env);
/**
* Sets the target EPR
@@ -395,11 +395,11 @@
* @param target_epr pointer to the epr struct to be set as target
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- set_target_epr)(
+ axis2_status_t (AXIS2_CALL *
+ set_target_epr)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env,
- axis2_endpoint_ref_t *target_epr);
+ axis2_env_t **env,
+ axis2_endpoint_ref_t *target_epr);
/**
* Gets the service context
@@ -407,10 +407,10 @@
* @param env double pointer to environment struct. MUST NOT be NULL
* @return pointer to service context struct
*/
- axis2_svc_ctx_t* (AXIS2_CALL *
- get_svc_ctx)(
+ axis2_svc_ctx_t* (AXIS2_CALL *
+ get_svc_ctx)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env);
+ axis2_env_t **env);
/**
* Frees the service client
@@ -419,10 +419,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- free)(
+ axis2_status_t (AXIS2_CALL *
+ free)(
struct axis2_svc_client *svc_client,
- axis2_env_t **env);
+ axis2_env_t **env);
};
/**
@@ -466,105 +466,105 @@
/************************** Start of function macros **************************/
/** Gets the service consumed by service client */
#define AXIS2_SVC_CLIENT_GET_AXIS_SERVICE(svc_client, env) \
- ((svc_client)->ops->get_svc(svc_client, env))
+ ((svc_client)->ops->get_svc(svc_client, env))
/** Sets the options to be used by service client */
#define AXIS2_SVC_CLIENT_SET_OPTIONS(svc_client, env, options) \
- ((svc_client)->ops->set_options(svc_client, env, options))
+ ((svc_client)->ops->set_options(svc_client, env, options))
/** Gets the options being used by service client */
#define AXIS2_SVC_CLIENT_GET_OPTIONS(svc_client, env) \
- ((svc_client)->ops->get_options(svc_client, env))
+ ((svc_client)->ops->get_options(svc_client, env))
/** Sets the overriding options to be used by service client */
#define AXIS2_SVC_CLIENT_SET_OVERRIDE_OPTIONS(svc_client, env, override_options) \
- ((svc_client)->ops->set_override_options(svc_client, env, override_options))
+ ((svc_client)->ops->set_override_options(svc_client, env, override_options))
/** Gets the overriding options being used by service client */
#define AXIS2_SVC_CLIENT_GET_OVERRIDE_OPTIONS(svc_client, env) \
- ((svc_client)->ops->get_override_options(svc_client, env))
+ ((svc_client)->ops->get_override_options(svc_client, env))
/** Engages the given module */
#define AXIS2_SVC_CLIENT_ENGAGE_MODULE(svc_client, env, module_name) \
- ((svc_client)->ops->engage_module(svc_client, env, module_name))
+ ((svc_client)->ops->engage_module(svc_client, env, module_name))
/** Dis-engages the given module */
#define AXIS2_SVC_CLIENT_DISENGAGE_MODULE(svc_client, env, module_name) \
- ((svc_client)->ops->disengage_module(svc_client, env, module_name))
+ ((svc_client)->ops->disengage_module(svc_client, env, module_name))
/** Adds a SOAP header to be sent by the service client */
#define AXIS2_SVC_CLIENT_ADD_HEADER(svc_client, env, header) \
- ((svc_client)->ops->add_header(svc_client, env, header))
+ ((svc_client)->ops->add_header(svc_client, env, header))
/** Removes all the SOAP headers currently set on service client */
#define AXIS2_SVC_CLIENT_REMOVE_HEADERS(svc_client, env) \
- ((svc_client)->ops->remove_headers(svc_client, env))
+ ((svc_client)->ops->remove_headers(svc_client, env))
/** Adds a SOAP header to be sent by the service client with given text */
#define AXIS2_SVC_CLIENT_ADD_HEADER_WITH_TEXT(svc_client, env, header_name, header_text) \
- ((svc_client)->ops->add_header_with_text(svc_client, env, header_name, header_text))
+ ((svc_client)->ops->add_header_with_text(svc_client, env, header_name, header_text))
/** Sends the given payload in a robust manner, SOAP faults are captured */
#define AXIS2_SVC_CLIENT_SEND_ROBUST(svc_client, env, payload) \
- ((svc_client)->ops->send_robust(svc_client, env, payload))
+ ((svc_client)->ops->send_robust(svc_client, env, payload))
/** Sends the given payload in a robust manner targeted to named operation */
#define AXIS2_SVC_CLIENT_SEND_ROBUST_WITH_OP_QNAME(svc_client, env, op_qname, payload) \
- ((svc_client)->ops->send_robust_with_op_qname(svc_client, env, op_qname, payload))
+ ((svc_client)->ops->send_robust_with_op_qname(svc_client, env, op_qname, payload))
/** Sends the given payload and forgets about it, no SOAP faults are reported */
#define AXIS2_SVC_CLIENT_FIRE_AND_FORGET(svc_client, env, payload) \
- ((svc_client)->ops->fire_and_forget(svc_client, env, payload))
+ ((svc_client)->ops->fire_and_forget(svc_client, env, payload))
/** Sends the given payload targeted to named operation and forgets about it */
#define AXIS2_SVC_CLIENT_FIRE_AND_FORGET_WITH_OP_QNAME(svc_client, env, op_qname, payload) \
- ((svc_client)->ops->fire_and_forget_with_op_qname(svc_client, env, op_qname, payload))
+ ((svc_client)->ops->fire_and_forget_with_op_qname(svc_client, env, op_qname, payload))
/** Sends the given payload and receives the response */
#define AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client, env, payload) \
- ((svc_client)->ops->send_receive(svc_client, env, payload))
+ ((svc_client)->ops->send_receive(svc_client, env, payload))
/** Sends the given payload targeted to named operation and receives the response */
#define AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME(svc_client, env, op_qname, payload) \
- ((svc_client)->ops->send_receive_with_op_qname(svc_client, env, op_qname, payload))
+ ((svc_client)->ops->send_receive_with_op_qname(svc_client, env, op_qname, payload))
/** Sends the given payload and receives the response.
Does not block till response arrives. Uses the callback to capture response */
#define AXIS2_SVC_CLIENT_SEND_RECEIVE_NON_BLOCKING(svc_client, env, payload, callback) \
- ((svc_client)->ops->send_receive_non_blocking(svc_client, env, payload, callback))
+ ((svc_client)->ops->send_receive_non_blocking(svc_client, env, payload, callback))
/** Sends the given payload targeted to named operation and receives the response.
Does not block till response arrives. Uses the callback to capture response */
#define AXIS2_SVC_CLIENT_SEND_RECEIVE_NON_BLOCKING_WITH_OP_QNAME(svc_client, env, op_qname, payload, callback) \
- ((svc_client)->ops->send_receive_non_blocking_with_op_qname(svc_client, env, op_qname, payload, callback))
-
+ ((svc_client)->ops->send_receive_non_blocking_with_op_qname(svc_client, env, op_qname, payload, callback))
+
/** Creates the operation client to be used by the service client */
#define AXIS2_SVC_CLIENT_CREATE_OP_CLIENT(svc_client, env, op_qname) \
- ((svc_client)->ops->create_op_client(svc_client, env, op_qname))
+ ((svc_client)->ops->create_op_client(svc_client, env, op_qname))
/** Cleans up after the invocations */
#define AXIS2_SVC_CLIENT_FINALIZE_INVOKE(svc_client, env) \
- ((svc_client)->ops->finalize_invoke(svc_client, env))
+ ((svc_client)->ops->finalize_invoke(svc_client, env))
/** Gets the EPR of the service client */
#define AXIS2_SVC_CLIENT_GET_MY_EPR(svc_client, env, transport) \
- ((svc_client)->ops->get_my_epr(svc_client, env, transport))
+ ((svc_client)->ops->get_my_epr(svc_client, env, transport))
/** Gets the target EPR */
#define AXIS2_SVC_CLIENT_GET_TARGET_EPR(svc_client, env) \
- ((svc_client)->ops->get_target_epr(svc_client, env))
+ ((svc_client)->ops->get_target_epr(svc_client, env))
/** Sets the target EPR */
#define AXIS2_SVC_CLIENT_SET_TARGET_EPR(svc_client, env, target_epr) \
- ((svc_client)->ops->set_target_epr(svc_client, env, target_epr))
+ ((svc_client)->ops->set_target_epr(svc_client, env, target_epr))
/** Gets the service context being used by the service client */
#define AXIS2_SVC_CLIENT_GET_SERVICE_CONTEXT(svc_client, env) \
- ((svc_client)->ops->get_svc_ctx(svc_client, env))
+ ((svc_client)->ops->get_svc_ctx(svc_client, env))
/** Frees given service client */
#define AXIS2_SVC_CLIENT_FREE(svc_client, env) \
- ((svc_client)->ops->free(svc_client, env))
+ ((svc_client)->ops->free(svc_client, env))
/************************** End of function macros ****************************/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org