cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] Commented: (CXF-2154) Cannot get Form values from MultivaluedMap
Date Fri, 24 Apr 2009 10:54:30 GMT


Sergey Beryozkin commented on CXF-2154:

Hi Chris, David

I need some help. I did try to reproduce  the issue David raised. Can you please try to come
up with a basic test case, simple server code, basic HTTP Client code or indeed CXF client
code, with CXF it's straighforward to write a test client code :
Book b = JAXRSClientFactory.create("http://foo:9090/bar", Book.class);
b.postUsingFormParams(1, 2);


WebClient wc = WebClient.create("http://foo:9090/bar");
wc.form(new Form()) 

I actually wrote a client test code which posts the on-the-wire request through the socket
directly, to try to match the request as close as possible to the reality...So the test client
code can use the sockets if needed

thanks, Sergey

> Cannot get Form values from MultivaluedMap
> ------------------------------------------
>                 Key: CXF-2154
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 2.2
>         Environment: Windows XP Java 1.6 tomcat
>            Reporter: David people
> Hi,
>    I'm trying to get All the form fields from a a form which is posted to the restful
web service.
>     <form method="POST" action="http://localhost:8080/webapp/webservice/customerservice/temp"
>              <input type="text" value="hello" name="param1"/>
>              <input type="text" value="hfsello" name="param2"/>
>              <input type="submit"/>
>     </form>
> I have the following method
> @Path("/temp")
> public String temp(MultivaluedMap<String, String> params){
>      System.out.println("Params = "+params);
>      return "<done>"+params+"</done>";
> }
> The output is always empty, the size of the params object is zero.
> The very same method used to work in a previous version of CXF.
> Is there a new way to use MultivaluedMap?
> Thanks...

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

View raw message