| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi All We are required to implement a system in C/S structure. The Client have to send a request to the Server every min. And we use axis2c to send and recv messages between client and server, and a persistent http connection is required. my question is how can i establish a persistent connetion from client to server with axis2c. Best Regard Yuanfeng Zhang |
|
#2
| |||
| |||
| Hi, Did you mean HTTP Keep alive by a persistent connection? Supun. On Tue, Nov 4, 2008 at 3:58 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > Hi All > > We are required to implement a system in C/S structure. The Client > have to send a request to the Server every min. And we use axis2c to send > and recv messages between client and server, and a persistent http > connection is required. my question is how can i establish a persistent > connetion from client to server with axis2c. > > > Best Regard > Yuanfeng Zhang > -- Software Engineer, WSO2 Inc http://wso2.org Web Services with Axis2/C http://wsaxc.blospot.com |
|
#3
| |||
| |||
| Hi The problem is, we use the API "axis2_svc_client_send_receive" to send request and receive response between client and server, we hope all the messages be transfered in only one http connection, but we found when the client received the response message, it released the connection, and establish a new http connection for the next request. Can we send and recv all the messages in one connection? And how to configure axis2c? Thanks! 2008/11/4 Supun Kamburugamuva <supun06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Hi, > > Did you mean HTTP Keep alive by a persistent connection? > > Supun. > > > On Tue, Nov 4, 2008 at 3:58 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> Hi All >> >> We are required to implement a system in C/S structure. The Client >> have to send a request to the Server every min. And we use axis2c to send >> and recv messages between client and server, and a persistent http >> connection is required. my question is how can i establish a persistent >> connetion from client to server with axis2c. >> >> >> Best Regard >> Yuanfeng Zhang >> > > > > -- > Software Engineer, WSO2 Inc > http://wso2.org > Web Services with Axis2/C http://wsaxc.blospot.com > > |
|
#4
| |||
| |||
| Hi, "Yuanfeng Zhang" <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Can we send and recv all the messages in one connection? And how to > configure axis2c? if you use Axis2/C client with libcurl enabled and server with apache2 server(mod_axis2) , You should be able to use send and recv all messages in one connection (keep alive). thanks, Dinesh |
|
#5
| |||
| |||
| Hi Dinesh Thanks! Can you give some example about that? And how to configure Apache2?(I have already built mod_axis2c) Thanks a lot! 2008/11/4 Dinesh Premalal <xydinesh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Hi, > > "Yuanfeng Zhang" <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > > Can we send and recv all the messages in one connection? And how > to > > configure axis2c? > > if you use Axis2/C client with libcurl enabled and server with apache2 > server(mod_axis2) , You should be able to use send and recv all > messages in one connection (keep alive). > > > thanks, > Dinesh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe-28n8OjmUYWfN...blic.gmane.org > For additional commands, e-mail: axis-c-user-help-28n8OjmUYWfNLxjTenL...blic.gmane.org > > |
|
#6
| |||
| |||
| On Tue, Nov 4, 2008 at 11:24 AM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > Hi Dinesh > > Thanks! > Can you give some example about that? And how to configure Apache2?(I > have already built mod_axis2c) > http://wso2.org/library/1686 thanks, Dinesh -- http://nethu.org |
|
#7
| |||
| |||
| Hi Dinesh I have already rebuild my client axis2/c libs with libcurl enabled and run apache2 with the configurations "KeepAlive On" "KeepAliveTimeout 100" and "MaxKeepAliveRequests 500" in httpd.conf. Then I use the api "axis2_svc_client_send_receive" to communicate with server, and I still found i cannot send and recv all the messages in one connection. Is there any other work I have to do? Please help ! Thanks! 2008/11/5 Premalal <xydinesh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > On Tue, Nov 4, 2008 at 11:24 AM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> Hi Dinesh >> >> Thanks! >> Can you give some example about that? And how to configure >> Apache2?(I have already built mod_axis2c) >> > > http://wso2.org/library/1686 > > thanks, > Dinesh > -- > http://nethu.org > |
|
#8
| |||
| |||
| Hi, On Tue, Nov 4, 2008 at 11:05 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > Hi Dinesh > > I have already rebuild my client axis2/c libs with libcurl enabled and > run apache2 with the configurations "KeepAlive On" "KeepAliveTimeout 100" > and "MaxKeepAliveRequests 500" in httpd.conf. > Then I use the api "axis2_svc_client_send_receive" to communicate with > server, and I still found i cannot send and recv all the messages in one > connection. > Is there any other work I have to do? Please help ! If you are using *same* svc_client (libcurl enabled) for sending it should use a single connection with mod_axis2. thanks, Dinesh -- http://nethu.org |
|
#9
| |||
| |||
| Hi Dinesh, I built the client with libcurl enabled, and set the right AXIS2C_HOME, but some error occured while init the svc_client. If i build the client without libcurl , it works ok. the log is: [Mon Nov 10 17:56:35 2008] [error] ..\..\util\src\class_loader.c(167) Loading shared library D:\axis2c\axis2c-src-1.5.0\build\deploy/lib/axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 126: the version of curl is libcurl-7.15.1-msvc-win32-ssl-0.9.8a-zlib-1.2.3 the version of axis is 1.5.0 please help! Thanks! 2008/11/5 Dinesh Premalal <xydinesh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Hi, > > On Tue, Nov 4, 2008 at 11:05 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> Hi Dinesh >> >> I have already rebuild my client axis2/c libs with libcurl enabled and >> run apache2 with the configurations "KeepAlive On" "KeepAliveTimeout 100" >> and "MaxKeepAliveRequests 500" in httpd.conf. >> Then I use the api "axis2_svc_client_send_receive" to communicate with >> server, and I still found i cannot send and recv all the messages in one >> connection. >> Is there any other work I have to do? Please help ! >> > > If you are using *same* svc_client (libcurl enabled) for sending it should > use a single connection with mod_axis2. > > thanks, > Dinesh > > > > > -- > http://nethu.org > |
|
#10
| |||
| |||
| "Yuanfeng Zhang" <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Hi Dinesh, > > I built the client with libcurl enabled, and set the right AXIS2C_HOME, but > some error occured while init the svc_client. > If i build the client without libcurl , it works ok. > the log is: > [Mon Nov 10 17:56:35 2008] [error] ..\..\util\src\class_loader.c(167) Loading > shared library D:\axis2c\axis2c-src-1.5.0\build\deploy/lib/ > axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 126: I tried with libcurl , one or two weeks back it worked fine. Could you please check whether libcurl libraries available in the PATH as operating system be able to load them. It would be great if you could send us your complete log files. thanks, Dinesh |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.