axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damitha Kumarage <dami...@wso2.com>
Subject Re: how to make client supports transportsession
Date Thu, 06 May 2010 08:03:32 GMT
xzg wrote:
>
> I have built an axis2 service in java, and configured it as
> transportsession. Also I have implemented a java client and it
> supports transportsession. I logged the session cookie ids in server
> side and get the same cookies for each java-stub. I generated client
> codes from wsdl2c tool, but found that one c-stub changes cookie id
> constantly. How to make c-stub supports transportsession? My codes of
> createing a c-stub:
>
> axutil_env_t *env = NULL;
> const axis2_char_t *address = NULL;
> axis2_endpoint_ref_t *endpoint_ref = NULL;
> axis2_options_t *options = NULL;
> const axis2_char_t *client_home = NULL;
> axis2_svc_client_t *svc_client = NULL;
> axis2_stub_t* stub = NULL;
> const axis2_char_t* endpoint_uri = NULL;
>
> env = axutil_env_create_all("jsweis.log", AXIS2_LOG_LEVEL_TRACE);
> address = "http://localhost:8888/axis2/services/jsweis";
> endpoint_ref = axis2_endpoint_ref_create(env, address);
> options = axis2_options_create(env);
> axis2_options_set_to(options, env, endpoint_ref);
> client_home = AXIS2_GETENV("AXIS2C_HOME");
>
> endpoint_uri = axis2_endpoint_ref_get_address(endpoint_ref, env);
> stub = axis2_stub_create_jsweis(env, client_home, endpoint_uri);
>
> Regards
> Zhigang
>
client side session support using cookies is possible with released
Axis2/C only with libcurl client transport. You need to enable libcurl
transport to do that and set an option in option struct to enable
sessions. However I haven't tested this. In the trunk sessions are
implemented with default transport

Thanks,
Damitha

-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message