axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gelle, Sreenivasulu" <>
Subject RE: [LIKELY JUNK]RE: [LIKELY JUNK]encountering problem when upgrading Axis2/c from 1.3 to 1.5
Date Wed, 04 Feb 2009 23:30:09 GMT



From: Gelle, Sreenivasulu [] 
Sent: Wednesday, February 04, 2009 2:33 PM
To: Apache AXIS C Developers List
Subject: [LIKELY JUNK]RE: [LIKELY JUNK]encountering problem when
upgrading Axis2/c from 1.3 to 1.5 


Hi All,


Now I narrowed down the problem. The fact that the response I got has
left out the root node is because the axis2/c does not send over the
query String properly (in a different way?) in http request, the web
server (built using AXIS-J 1.4, a bit old I know) actually gets a
different request and send back a different response accordingly. 


Here is my situation, the client send the request to the following end




When I use axis2/c 1.3, it seems that all the information is sent over
so that the server side can get the query string ver=2.0 using the
following call:


           String queryString = request.getQueryString();


In which request is an HttpServletRequest. But in Axis2/c 1.5, I got a
null value for the queryString.


Is this a known issue or the query parameter is sent over differently
and I should use a different method to get it?






From: Gelle, Sreenivasulu [] 
Sent: Tuesday, February 03, 2009 5:11 PM
To: Apache AXIS C Developers List
Cc: Yuin, Maria
Subject: [LIKELY JUNK]encountering problem when upgrading Axis2/c from
1.3 to 1.5


Hi All,


I am encountering a serious problem upgrading axis2/c from 1.3 to 1.5.
Basically, I noticed that in 1.5 the response always leaves out the root
node in the soap message. I have the following simplified code snippet:



axiom_node_t * responseNode =
axis2_svc_client_send_receive(_wsf_service_client, _env, payload);


xml_writer = axiom_xml_writer_create_for_memory(_env, NULL, AXIS2_TRUE,


om_output = axiom_output_create(_env, xml_writer);


//add xsi namespace definition, this seems to be a bug in axiom.

axiom_namespace_t* ns_xsi =  axiom_namespace_create(_env,
"", "xsi");


axiom_element_t* node_ele  = (axiom_element_t*)
axiom_node_get_data_element(responseNode, _env);


axiom_element_declare_namespace_assume_param_ownership(node_ele, _env,


axiom_node_serialize_sub_tree(node, _env, om_output);


xmlreply = (axis2_char_t*)axiom_xml_writer_get_xml(xml_writer, _env);



In Axis2/c 1.3, I used to have a response (xmlreply) like this:





But in 1.5, I ONLY got the following:


 <version>Product version</version>


That is, the root node <localtypes:pingVersion> is somehow missing. 


Is there anything I am missing, or the interface changed and I need to
call a different method to serialize?


Thanks much!



View raw message