axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jang (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-1495) An error found while receiving www-form-urlencoded parameter values sent by POST method in REST style.
Date Mon, 18 Oct 2010 10:54:22 GMT
An error found while receiving www-form-urlencoded parameter values sent by POST method in
REST style.
------------------------------------------------------------------------------------------------------

                 Key: AXIS2C-1495
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1495
             Project: Axis2-C
          Issue Type: Bug
          Components: REST
    Affects Versions: 1.6.0
         Environment: Windows 7, Win32
            Reporter: David Jang


I have been writing my code using Axis2/c server to apply to my project from about a month
ago.
I found a strange bug, which I don't know whether it was occurred from me or from axis2/c
server.
Could you check this out for me?
 
Situation is like this.
 
I sent a HTTP request using IE with the code shown below.
 
 
<html>
<body>
<form name="testPOST" action="http://localhost:9090/axis2/services/school/writeobject/scd/1"
method="POST">
     Tag ID <input type="text" name="tagid"/><br/>
     Transaction ID <input type="text" name="transid"/><br/>
     Value<input type="text" name="value"/><br/>
     <input type="submit" value="transdata"><br/>
</form>
</body>
</html>
 
Let's assume that I inputted 1, 1, 100 for respective Tag ID, Transaction ID, and Value.
 
 
On server side, when I look into the parameters using the below function in school_skeleton.c
 
 
axiom_node_t *AXIS2_CALL
school_invoke(
    axis2_svc_skeleton_t * svc_skeleton,
    const axutil_env_t * env,
    axiom_node_t * node,
    axis2_msg_ctx_t * msg_ctx)
{
   ...
 
    axis2_char_t * pStrNode = axiom_node_to_string(node, env);
 
}
 
 
It shows like this.
 
<...><tagid>1</tagid><transid>1</transid><value>10</value><...>
 
 
Please make notice that <value>10</value> which is not correct, it should be <value>100</value>

since I put 100 into Value param as shown above.
 
I really don't know why the last character is trancated when params with xxx-form-urlencoded
form are sent by POST.
It does not problem when the GET method is used or xml data is sent to the axis2/c server.
Only POST method parameters with xxx-form-urlencoded form are sent to Axis2/c server.
 
Could you give a hint for me to resolve this problem? It really annoying me from a few days
ago.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message