Hi,

The get_option function of the service client returns a const axis2_options_t pointer.

const axis2_options_t *AXIS2_CALL
axis2_svc_client_get_options(
   const axis2_svc_client_t *svc_client,
   const axis2_env_t *env);

This makes it difficult to use it in the following manner:

const axis2_options_t *options = NULL;
const axis2_char_t *old_action = NULL;
options = AXIS2_SVC_CLIENT_GET_OPTIONS (svc_client, env);
old_action = AXIS2_OPTIONS_GET_ACTION(options, env);
AXIS2_OPTIONS_SET_ACTION(options, env, "new action"); /* problem here because set_action modifies options */


Is the const modifier required in this function?

Cheers,
Ishan.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to