rijojoy / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

Payload set through Form tab is always set to text/plain. Should be allowed to set the mediatype of each body part for a multipart/form-data post #162

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a multipart/form-data request
2.Upload a file and add xml data in the form tab
3.On the server side, payload is always treated as text/plain due to which it 
cannot be parsed to JAXB object. Get an error "No available MessageBodyReader 
for class JAXBElement and media type text/plain"

What is the expected output? What do you see instead?
On the server side, I process the post as MultiPart. I cannot parse the payload 
to JAXB object. I was hoping it would parse

On what operating system, browser and browser version?
Windows 7, Chrome 25.0.1364.97 m

I was using REST client(https://code.google.com/p/rest-client/) where i can 
create a multipart body and set mediatype for each body part.

Original issue reported on code.google.com by barkha.k...@gmail.com on 1 Mar 2013 at 9:44