Hi

On Thu, Mar 31, 2011 at 7:41 AM, sam <[email protected]> wrote:

> Hi
> I'm trying to implement a REST WS to upload files with CXF 2.3.3 but I'm
> getting a "* Couldn't find MIME boundary" error and I don't know what's
> wrong.
> *
> This is what I have:
> First the REST interface:
> @Produces("text/xml")
> public interface ImageService {
>   @POST
>   @Path("/upload")
>   @Consumes("multipart/form-data")
>    Response upload(MultipartBody body);
> }
> Then I do a POST with this
> the jsp code is like:
>
>  name:
>
>  file:
>
>
>
>
> Type some text (if you like):
> Please specify a file, or a set of files:
>
> *
> *
> *I get this error *
> *
> *
> *
> WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper -
> WebApplicationException has been caught : Couldn't find MIME boundary:
> Thanks in advance,
>
>
Can you please capture the actual payload, using the tcp trace utility or
CXF logging feature and send it to me ?

thanks, Sergey


>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/getting-a-Couldn-t-find-MIME-boundary-error-when-implement-a-REST-WS-to-upload-files-tp4272817p4272817.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Sergey Beryozkin

Application Integration Division of Talend <http://www.talend.com>
http://sberyozkin.blogspot.com

Reply via email to