Re: Problem encoding GET parameters with '+' character

Miguel Ángel Francisco Fernández <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAKpTneo2yQ3HDgGnjF13-e4rUm6i4jRVokL20oS8WRipRwfa7A@mail.gmail.com>
Hi all,

Does anybody know how to solve this? a workaround or a specific
configuration to be able to send '+' symbols in GET parameters? Thank you
in advance.

Regards

2013/2/14 Miguel Ángel Francisco Fernández <[email protected]>

> Hello,
>
> I am using wsdl2java tool to generate a Java client to access a REST web
> service described with a WSDL 2.0. I am using these options:
>
> <plugin>
>     <groupId>org.apache.axis2</
> groupId>
>     <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>     <version>1.6.2</version>
>     <configuration>
>         <packageName>com.interoud.vodkatv.wsdl</packageName>
>         <wsdlFile>src/main/wsdl/vodkatv.wsdl</wsdlFile>
>         <wsdl-version>2</wsdl-version>
>         <unwrap>true</unwrap>
>         <wsdlVersion>2</wsdlVersion>
>     </configuration>
>     <executions>
>         <execution>
>             <goals>
>                 <goal>wsdl2code</goal>
>             </goals>
>         </execution>
>     </executions>
> </plugin>
>
> The generated client works ok, except when I invoke a GET operation with a
> parameter that contains the symbol '+'. 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 my server ("x x").
> If I try to send the parameter encoded, i.e., "%2B", I received "%252B" in
> my server. Am I doing anything wrong? Thank you for your help.
>
> Regards
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.