Re: What are the configurable ws-security parameters for incoming message

2008-11-04 Thread Samisa Abeysinghe
Rampart/C makes use of WS-Policy for configuring how it behaves. Samisa... Vivian Wang wrote: Hi, I am trying to use rampart/c along with axis2/c to support WS-security. Just wonder, what are the configurable ws-security parameters for incoming message, especially from a web service client

Re: About persistent http connections

2008-11-04 Thread Dinesh Premalal
Hi, On Tue, Nov 4, 2008 at 11:05 PM, Yuanfeng Zhang <[EMAIL PROTECTED]>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. >

Re: About persistent http connections

2008-11-04 Thread Yuanfeng Zhang
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 sti

Re: About persistent http connections

2008-11-04 Thread Dinesh Premalal
On Tue, Nov 4, 2008 at 11:24 AM, Yuanfeng Zhang <[EMAIL PROTECTED]>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

Re: Some quick Axis2C help required

2008-11-04 Thread Manjula Peiris
Have a look at [1]. It contains axiom test programs. https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/axiom/test -Manjula. On Tue, 2008-11-04 at 18:09 +0530, ramesh Gopal wrote: > Hi Ssupun, > > Is this a better way as per coding standards. > Or, the methodology I have been using is

Re: About persistent http connections

2008-11-04 Thread Yuanfeng Zhang
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 <[EMAIL PROTECTED]> > Hi, > > "Yuanfeng Zhang" <[EMAIL PROTECTED]> writes: > > Can we send and recv all the me

Re: About persistent http connections

2008-11-04 Thread Dinesh Premalal
Hi, "Yuanfeng Zhang" <[EMAIL PROTECTED]> 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

Re: Some quick Axis2C help required

2008-11-04 Thread ramesh Gopal
Hi Ssupun, Is this a better way as per coding standards. Or, the methodology I have been using is more effective. In broader terms , Sample xml -- 1 2 I will first need to get the parent element, and then all the children and loop thru it. axiom_element_get_child_elements creates a

Re: About persistent http connections

2008-11-04 Thread Yuanfeng Zhang
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 e

Re: Some quick Axis2C help required

2008-11-04 Thread Supun Kamburugamuva
Here is a code sample for using the child element iterator. You can find this kind of code all over the axis2/C source. axiom_child_element_iterator_t *ci = NULL; if ((ci = axiom_element_get_child_elements(element, env, node)) != NULL) { axiom_element_t *ce = NULL; axiom_node_t *c

Re: About persistent http connections

2008-11-04 Thread Supun Kamburugamuva
Hi, Did you mean HTTP Keep alive by a persistent connection? Supun. On Tue, Nov 4, 2008 at 3:58 PM, Yuanfeng Zhang <[EMAIL PROTECTED]>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 t

About persistent http connections

2008-11-04 Thread Yuanfeng Zhang
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 connet

Re: Some quick Axis2C help required

2008-11-04 Thread ramesh Gopal
Hi Shankar, Could you give me a better solution which achieves this ... Basically, I want to read all the child nodes (for a node) and get the values. I have tried using axiom_element_get_child_elements or axiom_element_get_children ... but in vain, simply because I do not know how to use th

Re: Some quick Axis2C help required

2008-11-04 Thread ramesh Gopal
Hi, -- Generated Code is -- AXIS2_ENV_CHECK(env, NULL); if (!node) Complete Node { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SVC_SKEL_INVALID_XML_FORMAT_IN_REQUEST, AXIS2_FAILURE); printf("ERROR: invalid XML in request\n"); }