You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Miguel Ángel Francisco Fernández (JIRA)" <ji...@apache.org> on 2013/02/15 09:37:12 UTC

[jira] [Created] (AXIS2-5489) Encoding GET parameters with '+' character in generated REST clients with WSDL2Java

Miguel Ángel Francisco Fernández created AXIS2-5489:
-------------------------------------------------------

             Summary: Encoding GET parameters with '+' character in generated REST clients with WSDL2Java
                 Key: AXIS2-5489
                 URL: https://issues.apache.org/jira/browse/AXIS2-5489
             Project: Axis2
          Issue Type: Bug
          Components: kernel, transports
    Affects Versions: 1.6.2
         Environment: Ubuntu
            Reporter: Miguel Ángel Francisco Fernández


Using wsdl2java tool to generate a Java client to access a REST web service described with a WSDL 2.0, the generated client does not encode the symbol '+' in GET parameters.

For example, if I have an URL "/get_url", and I set the parameter "param" to "x+x", the symbol "+" is not encoded, and therefore it is interpreted as a space on the server ("x x"). If I try to send the parameter encoded, i.e., "%2B", "%252B" is received in the server.

Therefore, it is not possible to send the '+' parameter.

I guess that it is caused by the definition of the field LEGAL_CHARACTERS_IN_QUERY in the interface org.apache.axis2.description.WSDL2Constants.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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