You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by jim <ji...@landoloons.com> on 2010/09/15 16:26:01 UTC
can't get cookies working
I need to use Axis2C on OS X. I've gotten things working, sort of,
but have stumbled on cookie support. The server I'll be accessing sets
a cookie on an initial call, then expects it on subsequent calls.
As far as I can see, I should be setting the options on the stub/service
client so that 'manage session' = true. I've tried accomplishing this
with axis_options_set_manage_session(). But, no cookie shows up in my
requests.
I've tried explicitly adding a cookie HTTP header, by following examples
I've found for adding headers to the stub/service client options. The
exact syntax of the examples varies; but I never get a header in the
HTTP request.
Does cookie/session support work? Is it just a matter of getting the
right syntax? Or is AxisC not able to handle cookies?
Any responses will earn my undying gratitude...
Jim Hughes
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by Damitha Kumarage <da...@wso2.com>.
jim wrote:
> In the axis2 log I see
> [Sun Sep 19 20:09:43 2010] [debug] http_transport_sender.c(771)
> using axis2 libcurl http sender.
>
> In http_transport_sender.c I see that libcurl is used if
> AXIS2_LIBCURL_ENABLED is Edefined.
>
> Therefor it seems that libcurl is the default transport, and maybe
> this is why my attempts to include a cookie header have not
> succeeded...? However I can't find any place where
> AXIS2_LIBCURL_ENABLED is #defined.
>
> How can I use the default http transport instead of LIBCURL?
AFAIK to enable you need to give configuration option
./configure --enable-libcurl=yes [other options]
Without that I don't know how you got libcurl enabled. If you don't know
how it is enabled and need to disable it try --enable-libcurl=no
Damitha
>
>
>
> On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
>> Hi Jim,
>> Axis2/C has session support working. But I don't think any released
>> version has this support. Try 1.7.0 release candidate at [1]. At
>> client side session support you don't have to do any
>> configuration/coding. You need to set
>> axis2_options_set_manage_session() only if you are using libcurl
>> transport. But this is not the default transport.
>>
>> Damitha
>>
>> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>>
>> jim wrote:
>>> I need to use Axis2C on OS X. I've gotten things working, sort
>>> of, but have stumbled on cookie support. The server I'll be
>>> accessing sets a cookie on an initial call, then expects it on
>>> subsequent calls.
>>>
>>> As far as I can see, I should be setting the options on the
>>> stub/service client so that 'manage session' = true. I've tried
>>> accomplishing this with axis_options_set_manage_session(). But, no
>>> cookie shows up in my requests
>>>
>>> I've tried explicitly adding a cookie HTTP header, by following
>>> examples I've found for adding headers to the stub/service client
>>> options. The exact syntax of the examples varies; but I never get a
>>> header in the HTTP request.
>>>
>>> Does cookie/session support work? Is it just a matter of getting the
>>> right syntax? Or is AxisC not able to handle cookies?
>>>
>>> Any responses will earn my undying gratitude...
>>>
>>> Jim Hughes
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
--
__________________________________________________________________
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-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by Damitha Kumarage <da...@wso2.com>.
jim wrote:
> In the axis2 log I see
> [Sun Sep 19 20:09:43 2010] [debug] http_transport_sender.c(771)
> using axis2 libcurl http sender.
>
> In http_transport_sender.c I see that libcurl is used if
> AXIS2_LIBCURL_ENABLED is Edefined.
>
> Therefor it seems that libcurl is the default transport, and maybe
> this is why my attempts to include a cookie header have not
> succeeded...? However I can't find any place where
> AXIS2_LIBCURL_ENABLED is #defined.
>
> How can I use the default http transport instead of LIBCURL?
AFAIK to enable you need to give configuration option
./configure --enable-libcurl=yes [other options]
Without that I don't know how you got libcurl enabled. If you don't know
how it is enabled and need to disable it try --enable-libcurl=no
Damitha
>
>
>
> On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
>> Hi Jim,
>> Axis2/C has session support working. But I don't think any released
>> version has this support. Try 1.7.0 release candidate at [1]. At
>> client side session support you don't have to do any
>> configuration/coding. You need to set
>> axis2_options_set_manage_session() only if you are using libcurl
>> transport. But this is not the default transport.
>>
>> Damitha
>>
>> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>>
>> jim wrote:
>>> I need to use Axis2C on OS X. I've gotten things working, sort
>>> of, but have stumbled on cookie support. The server I'll be
>>> accessing sets a cookie on an initial call, then expects it on
>>> subsequent calls.
>>>
>>> As far as I can see, I should be setting the options on the
>>> stub/service client so that 'manage session' = true. I've tried
>>> accomplishing this with axis_options_set_manage_session(). But, no
>>> cookie shows up in my requests
>>>
>>> I've tried explicitly adding a cookie HTTP header, by following
>>> examples I've found for adding headers to the stub/service client
>>> options. The exact syntax of the examples varies; but I never get a
>>> header in the HTTP request.
>>>
>>> Does cookie/session support work? Is it just a matter of getting the
>>> right syntax? Or is AxisC not able to handle cookies?
>>>
>>> Any responses will earn my undying gratitude...
>>>
>>> Jim Hughes
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
--
__________________________________________________________________
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-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by jim <ji...@landoloons.com>.
In the axis2 log I see
[Sun Sep 19 20:09:43 2010] [debug] http_transport_sender.c(771)
using axis2 libcurl http sender.
In http_transport_sender.c I see that libcurl is used if
AXIS2_LIBCURL_ENABLED is Edefined.
Therefor it seems that libcurl is the default transport, and maybe this
is why my attempts to include a cookie header have not succeeded...?
However I can't find any place where AXIS2_LIBCURL_ENABLED is #defined.
How can I use the default http transport instead of LIBCURL?
On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
> Hi Jim,
> Axis2/C has session support working. But I don't think any released
> version has this support. Try 1.7.0 release candidate at [1]. At
> client side session support you don't have to do any
> configuration/coding. You need to set
> axis2_options_set_manage_session() only if you are using libcurl
> transport. But this is not the default transport.
>
> Damitha
>
> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
> jim wrote:
>> I need to use Axis2C on OS X. I've gotten things working, sort of,
>> but have stumbled on cookie support. The server I'll be accessing
>> sets a cookie on an initial call, then expects it on subsequent calls.
>>
>> As far as I can see, I should be setting the options on the
>> stub/service client so that 'manage session' = true. I've tried
>> accomplishing this with axis_options_set_manage_session(). But, no
>> cookie shows up in my requests
>>
>> I've tried explicitly adding a cookie HTTP header, by following
>> examples I've found for adding headers to the stub/service client
>> options. The exact syntax of the examples varies; but I never get a
>> header in the HTTP request.
>>
>> Does cookie/session support work? Is it just a matter of getting the
>> right syntax? Or is AxisC not able to handle cookies?
>>
>> Any responses will earn my undying gratitude...
>>
>> Jim Hughes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by jim <ji...@landoloons.com>.
Damitha,
Thanks for your reply, it's extremely helpful.
Is there any support or guidance available for building on OS X?
If session management doesn't work for us, Is there a working syntax for
explicitly setting a cookie header in the HTTP headers for a request? I
tried several ways of creating a header and adding it to the options for
the stub/service client, but was not successful. The examples of
creating and adding headers are all Java and it appears that the
set_property constants (like HTTPConstants.HTTP_HEADERS) are only
present for the Java version, and that support for these properties
isn't present in Axis2 C.
Jim
On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
> Hi Jim,
> Axis2/C has session support working. But I don't think any released
> version has this support. Try 1.7.0 release candidate at [1]. At
> client side session support you don't have to do any
> configuration/coding. You need to set
> axis2_options_set_manage_session() only if you are using libcurl
> transport. But this is not the default transport.
>
> Damitha
>
> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
> jim wrote:
>> I need to use Axis2C on OS X. I've gotten things working, sort of,
>> but have stumbled on cookie support. The server I'll be accessing
>> sets a cookie on an initial call, then expects it on subsequent calls.
>>
>> As far as I can see, I should be setting the options on the
>> stub/service client so that 'manage session' = true. I've tried
>> accomplishing this with axis_options_set_manage_session(). But, no
>> cookie shows up in my requests
>>
>> I've tried explicitly adding a cookie HTTP header, by following
>> examples I've found for adding headers to the stub/service client
>> options. The exact syntax of the examples varies; but I never get a
>> header in the HTTP request.
>>
>> Does cookie/session support work? Is it just a matter of getting the
>> right syntax? Or is AxisC not able to handle cookies?
>>
>> Any responses will earn my undying gratitude...
>>
>> Jim Hughes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by jim <ji...@landoloons.com>.
Damitha,
Thanks for your reply, it's extremely helpful.
Is there any support or guidance available for building on OS X?
If session management doesn't work for us, Is there a working syntax for
explicitly setting a cookie header in the HTTP headers for a request? I
tried several ways of creating a header and adding it to the options for
the stub/service client, but was not successful. The examples of
creating and adding headers are all Java and it appears that the
set_property constants (like HTTPConstants.HTTP_HEADERS) are only
present for the Java version, and that support for these properties
isn't present in Axis2 C.
Jim
On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
> Hi Jim,
> Axis2/C has session support working. But I don't think any released
> version has this support. Try 1.7.0 release candidate at [1]. At
> client side session support you don't have to do any
> configuration/coding. You need to set
> axis2_options_set_manage_session() only if you are using libcurl
> transport. But this is not the default transport.
>
> Damitha
>
> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
> jim wrote:
>> I need to use Axis2C on OS X. I've gotten things working, sort of,
>> but have stumbled on cookie support. The server I'll be accessing
>> sets a cookie on an initial call, then expects it on subsequent calls.
>>
>> As far as I can see, I should be setting the options on the
>> stub/service client so that 'manage session' = true. I've tried
>> accomplishing this with axis_options_set_manage_session(). But, no
>> cookie shows up in my requests
>>
>> I've tried explicitly adding a cookie HTTP header, by following
>> examples I've found for adding headers to the stub/service client
>> options. The exact syntax of the examples varies; but I never get a
>> header in the HTTP request.
>>
>> Does cookie/session support work? Is it just a matter of getting the
>> right syntax? Or is AxisC not able to handle cookies?
>>
>> Any responses will earn my undying gratitude...
>>
>> Jim Hughes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by Damitha Kumarage <da...@wso2.com>.
jim wrote:
> We obtained 1.7.0, built and ran with it. I make an initial call to
> a web service, and in the HTTP response I see a Set Cookie header.
> But the cookie is not set on the client, at least it is not visible
> with Safari's "View All Cookies". I then make a second call to the
> web service and see no cookie header in the HTTP request. So, it
> still appears to me that there is no session/cookie support in the
> current Axis2.
>
> As before, any help is greatly appreciated. We do need cookie support
> for our application.
AFAIK cookie session support is working for 1.7.0. There is a session
server/client sample included in rc2. Just try that and let me know
whether it is working for you or not.
Thanks,
Damitha
>
> Jim
>
>
>
> On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
>> Hi Jim,
>> Axis2/C has session support working. But I don't think any released
>> version has this support. Try 1.7.0 release candidate at [1]. At
>> client side session support you don't have to do any
>> configuration/coding. You need to set
>> axis2_options_set_manage_session() only if you are using libcurl
>> transport. But this is not the default transport.
>>
>> Damitha
>>
>> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>>
>> jim wrote:
>>> I need to use Axis2C on OS X. I've gotten things working, sort
>>> of, but have stumbled on cookie support. The server I'll be
>>> accessing sets a cookie on an initial call, then expects it on
>>> subsequent calls.
>>>
>>> As far as I can see, I should be setting the options on the
>>> stub/service client so that 'manage session' = true. I've tried
>>> accomplishing this with axis_options_set_manage_session(). But, no
>>> cookie shows up in my requests
>>>
>>> I've tried explicitly adding a cookie HTTP header, by following
>>> examples I've found for adding headers to the stub/service client
>>> options. The exact syntax of the examples varies; but I never get a
>>> header in the HTTP request.
>>>
>>> Does cookie/session support work? Is it just a matter of getting the
>>> right syntax? Or is AxisC not able to handle cookies?
>>>
>>> Any responses will earn my undying gratitude...
>>>
>>> Jim Hughes
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
--
__________________________________________________________________
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-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by Damitha Kumarage <da...@wso2.com>.
jim wrote:
> We obtained 1.7.0, built and ran with it. I make an initial call to
> a web service, and in the HTTP response I see a Set Cookie header.
> But the cookie is not set on the client, at least it is not visible
> with Safari's "View All Cookies". I then make a second call to the
> web service and see no cookie header in the HTTP request. So, it
> still appears to me that there is no session/cookie support in the
> current Axis2.
>
> As before, any help is greatly appreciated. We do need cookie support
> for our application.
AFAIK cookie session support is working for 1.7.0. There is a session
server/client sample included in rc2. Just try that and let me know
whether it is working for you or not.
Thanks,
Damitha
>
> Jim
>
>
>
> On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
>> Hi Jim,
>> Axis2/C has session support working. But I don't think any released
>> version has this support. Try 1.7.0 release candidate at [1]. At
>> client side session support you don't have to do any
>> configuration/coding. You need to set
>> axis2_options_set_manage_session() only if you are using libcurl
>> transport. But this is not the default transport.
>>
>> Damitha
>>
>> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>>
>> jim wrote:
>>> I need to use Axis2C on OS X. I've gotten things working, sort
>>> of, but have stumbled on cookie support. The server I'll be
>>> accessing sets a cookie on an initial call, then expects it on
>>> subsequent calls.
>>>
>>> As far as I can see, I should be setting the options on the
>>> stub/service client so that 'manage session' = true. I've tried
>>> accomplishing this with axis_options_set_manage_session(). But, no
>>> cookie shows up in my requests
>>>
>>> I've tried explicitly adding a cookie HTTP header, by following
>>> examples I've found for adding headers to the stub/service client
>>> options. The exact syntax of the examples varies; but I never get a
>>> header in the HTTP request.
>>>
>>> Does cookie/session support work? Is it just a matter of getting the
>>> right syntax? Or is AxisC not able to handle cookies?
>>>
>>> Any responses will earn my undying gratitude...
>>>
>>> Jim Hughes
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
--
__________________________________________________________________
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-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by jim <ji...@landoloons.com>.
We obtained 1.7.0, built and ran with it. I make an initial call to a
web service, and in the HTTP response I see a Set Cookie header. But
the cookie is not set on the client, at least it is not visible with
Safari's "View All Cookies". I then make a second call to the web
service and see no cookie header in the HTTP request. So, it still
appears to me that there is no session/cookie support in the current Axis2.
As before, any help is greatly appreciated. We do need cookie support
for our application.
Jim
On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
> Hi Jim,
> Axis2/C has session support working. But I don't think any released
> version has this support. Try 1.7.0 release candidate at [1]. At
> client side session support you don't have to do any
> configuration/coding. You need to set
> axis2_options_set_manage_session() only if you are using libcurl
> transport. But this is not the default transport.
>
> Damitha
>
> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
> jim wrote:
>> I need to use Axis2C on OS X. I've gotten things working, sort of,
>> but have stumbled on cookie support. The server I'll be accessing
>> sets a cookie on an initial call, then expects it on subsequent calls.
>>
>> As far as I can see, I should be setting the options on the
>> stub/service client so that 'manage session' = true. I've tried
>> accomplishing this with axis_options_set_manage_session(). But, no
>> cookie shows up in my requests
>>
>> I've tried explicitly adding a cookie HTTP header, by following
>> examples I've found for adding headers to the stub/service client
>> options. The exact syntax of the examples varies; but I never get a
>> header in the HTTP request.
>>
>> Does cookie/session support work? Is it just a matter of getting the
>> right syntax? Or is AxisC not able to handle cookies?
>>
>> Any responses will earn my undying gratitude...
>>
>> Jim Hughes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by jim <ji...@landoloons.com>.
In the axis2 log I see
[Sun Sep 19 20:09:43 2010] [debug] http_transport_sender.c(771)
using axis2 libcurl http sender.
In http_transport_sender.c I see that libcurl is used if
AXIS2_LIBCURL_ENABLED is Edefined.
Therefor it seems that libcurl is the default transport, and maybe this
is why my attempts to include a cookie header have not succeeded...?
However I can't find any place where AXIS2_LIBCURL_ENABLED is #defined.
How can I use the default http transport instead of LIBCURL?
On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
> Hi Jim,
> Axis2/C has session support working. But I don't think any released
> version has this support. Try 1.7.0 release candidate at [1]. At
> client side session support you don't have to do any
> configuration/coding. You need to set
> axis2_options_set_manage_session() only if you are using libcurl
> transport. But this is not the default transport.
>
> Damitha
>
> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
> jim wrote:
>> I need to use Axis2C on OS X. I've gotten things working, sort of,
>> but have stumbled on cookie support. The server I'll be accessing
>> sets a cookie on an initial call, then expects it on subsequent calls.
>>
>> As far as I can see, I should be setting the options on the
>> stub/service client so that 'manage session' = true. I've tried
>> accomplishing this with axis_options_set_manage_session(). But, no
>> cookie shows up in my requests
>>
>> I've tried explicitly adding a cookie HTTP header, by following
>> examples I've found for adding headers to the stub/service client
>> options. The exact syntax of the examples varies; but I never get a
>> header in the HTTP request.
>>
>> Does cookie/session support work? Is it just a matter of getting the
>> right syntax? Or is AxisC not able to handle cookies?
>>
>> Any responses will earn my undying gratitude...
>>
>> Jim Hughes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by jim <ji...@landoloons.com>.
We obtained 1.7.0, built and ran with it. I make an initial call to a
web service, and in the HTTP response I see a Set Cookie header. But
the cookie is not set on the client, at least it is not visible with
Safari's "View All Cookies". I then make a second call to the web
service and see no cookie header in the HTTP request. So, it still
appears to me that there is no session/cookie support in the current Axis2.
As before, any help is greatly appreciated. We do need cookie support
for our application.
Jim
On 9/15/2010 10:26 PM, Damitha Kumarage wrote:
> Hi Jim,
> Axis2/C has session support working. But I don't think any released
> version has this support. Try 1.7.0 release candidate at [1]. At
> client side session support you don't have to do any
> configuration/coding. You need to set
> axis2_options_set_manage_session() only if you are using libcurl
> transport. But this is not the default transport.
>
> Damitha
>
> [1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
> jim wrote:
>> I need to use Axis2C on OS X. I've gotten things working, sort of,
>> but have stumbled on cookie support. The server I'll be accessing
>> sets a cookie on an initial call, then expects it on subsequent calls.
>>
>> As far as I can see, I should be setting the options on the
>> stub/service client so that 'manage session' = true. I've tried
>> accomplishing this with axis_options_set_manage_session(). But, no
>> cookie shows up in my requests
>>
>> I've tried explicitly adding a cookie HTTP header, by following
>> examples I've found for adding headers to the stub/service client
>> options. The exact syntax of the examples varies; but I never get a
>> header in the HTTP request.
>>
>> Does cookie/session support work? Is it just a matter of getting the
>> right syntax? Or is AxisC not able to handle cookies?
>>
>> Any responses will earn my undying gratitude...
>>
>> Jim Hughes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by Damitha Kumarage <da...@wso2.com>.
Hi Jim,
Axis2/C has session support working. But I don't think any released
version has this support. Try 1.7.0 release candidate at [1]. At client
side session support you don't have to do any configuration/coding. You
need to set axis2_options_set_manage_session() only if you are using
libcurl transport. But this is not the default transport.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
jim wrote:
> I need to use Axis2C on OS X. I've gotten things working, sort of,
> but have stumbled on cookie support. The server I'll be accessing
> sets a cookie on an initial call, then expects it on subsequent calls.
>
> As far as I can see, I should be setting the options on the
> stub/service client so that 'manage session' = true. I've tried
> accomplishing this with axis_options_set_manage_session(). But, no
> cookie shows up in my requests
>
> I've tried explicitly adding a cookie HTTP header, by following
> examples I've found for adding headers to the stub/service client
> options. The exact syntax of the examples varies; but I never get a
> header in the HTTP request.
>
> Does cookie/session support work? Is it just a matter of getting the
> right syntax? Or is AxisC not able to handle cookies?
>
> Any responses will earn my undying gratitude...
>
> Jim Hughes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
--
__________________________________________________________________
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-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
Re: can't get cookies working
Posted by Damitha Kumarage <da...@wso2.com>.
Hi Jim,
Axis2/C has session support working. But I don't think any released
version has this support. Try 1.7.0 release candidate at [1]. At client
side session support you don't have to do any configuration/coding. You
need to set axis2_options_set_manage_session() only if you are using
libcurl transport. But this is not the default transport.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
jim wrote:
> I need to use Axis2C on OS X. I've gotten things working, sort of,
> but have stumbled on cookie support. The server I'll be accessing
> sets a cookie on an initial call, then expects it on subsequent calls.
>
> As far as I can see, I should be setting the options on the
> stub/service client so that 'manage session' = true. I've tried
> accomplishing this with axis_options_set_manage_session(). But, no
> cookie shows up in my requests
>
> I've tried explicitly adding a cookie HTTP header, by following
> examples I've found for adding headers to the stub/service client
> options. The exact syntax of the examples varies; but I never get a
> header in the HTTP request.
>
> Does cookie/session support work? Is it just a matter of getting the
> right syntax? Or is AxisC not able to handle cookies?
>
> Any responses will earn my undying gratitude...
>
> Jim Hughes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
--
__________________________________________________________________
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-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org