You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Dimuthu Gamage <di...@gmail.com> on 2009/02/05 03:15:18 UTC

Re: [LIKELY JUNK]RE: [LIKELY JUNK]encountering problem when upgrading Axis2/c from 1.3 to 1.5

Hi Gelle,

This looks like a bug in recent Axis2/C in the client request (it ignores
url parameters). Can you please raise a jira on this.

Thanks
Dimuthu

On Thu, Feb 5, 2009 at 5:00 AM, Gelle, Sreenivasulu <
sreenivasulu.gelle@sap.com> wrote:

>
>
>
>  ------------------------------
>
> *From:* Gelle, Sreenivasulu [mailto:sreenivasulu.gelle@sap.com]
> *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
> point:
>
>
>
>             *http://host:8080/products/servlet/webservices?ver=2.0*
>
> * *
>
> 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?
>
>
>
> Thanks!
>
> Srini
>
>
>  ------------------------------
>
> *From:* Gelle, Sreenivasulu [mailto:sreenivasulu.gelle@sap.com]
> *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, 0,
> AXIS2_XML_PARSER_TYPE_BUFFER);
>
>
>
> 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, "
> http://www.w3.org/2001/XMLSchema-instance", "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,
> ns_xsi);
>
>
>
> 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:
>
>
>
> <localtypes:pingVersion xmlns:localtypes="
> http://www.xxx.com/yyy/ServerXXX.xsd"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><version>Product
> version 12.2.0.0</version></localtypes:pingVersion>
>
>
>
> But in 1.5, I ONLY got the following:
>
>
>
>  <version>Product version 12.2.0.0</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!
>
> Srini
>
>
>



-- 
Thanks,
Dimuthu Gamage

http://www.dimuthu.org
http://www.wso2.org