You need to retrieve the property, not the parameter :) Supun.
On Thu, Apr 9, 2009 at 7:16 AM, Sam Carleton <scarle...@miltonstreet.com>wrote: > I am trying to set a property in the Apache module so the module can > get the property, but it isn't working. The calls work, but once I > get to the service, the get call returns NULL. My thought is that I > am setting the property at the wrong place or in the wrong way. I > want the property to be request based, so I added the following code > before line 442 of apache2_worker.c: > > line 435: request_body = axutil_stream_create_apache2(env, request); > line 436: if (!request_body) > line 437: { > line 438: AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error occured > in" > line 439: " creating input stream."); > line 440: return AXIS2_CRITICAL_FAILURE; > line 441: } > > axutil_property_t * pProperty = axutil_property_create(env); > axutil_property_set_value(pProperty, env, ppCfg); > axis2_msg_ctx_set_property(msg_ctx, env, "PPSetting", pProperty); > > line 442: if (M_GET == request->method_number || M_DELETE == > request->method_number) > > Then in the service's invoke I am making this call: > > axutil_param_t * param = axis2_msg_ctx_get_parameter(msg_ctx, env, > "PPSetting"); > > The param is always NULL. What am I doing wrong? > > Sam > -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com