users@jersey.java.net

Help - Providing multipart/mixed as request from SOAPUI Tool

From: Vedavalli Radhika <radhika.kv_at_gmail.com>
Date: Tue, 7 Sep 2010 07:51:06 -0400

I am trying to test my RESTful webservice method using SOAP-UI Tool.

The service method uses *multipart/mixed* mime-type as request.

I am unable to send a multipart/mixed request to the service using the
tool.



For the following request,



--Boundary_1_27742346_1283484587534

Content-Type: application/xhtml+xml



<?xml version="1.0" encoding="UTF-8"?>

<HTML xmlns:iBubble="http://ntr.lxnx.org">

            <META http-equiv="Content-Type" content="text/html;
charset=UTF-8">

            ..............

            </META>

            <BODY>

                        <doc iTag="test1">RYAN MICHAELS, an Individual,
Plaintiff, vs. NANCY ZOSS, an Individual; and DOES 1 through 100, inclusive,
Defendants ............

...............

.................

ahead<br/>and do<br/>it.<br/><br/></span></doc>

            </BODY>

</HTML>



--Boundary_1_27742346_1283484587534

Content-Type: text/plain



Add_document.xml

--Boundary_1_27742346_1283484587534

Content-Type: text/plain



Sudheer

--Boundary_1_27742346_1283484587534

Content-Type: application/xml



<annotationList><annotation id="0b0e8631-a9ad-4045-8ddc-3841ec1058e1"
startItag="test1"
endItag="test1"><beginIndex>137</beginIndex><endIndex>172</endIndex></annotation></annotationList>

--Boundary_1_27742346_1283484587534--





Below is the Response received:

<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><error><date>2010-09-07T15:43:30.552+05:00</date><responseCode>500
Internal Server *
Error</responseCode><name>javax.ws.rs.WebApplicationException*: *
org.jvnet.mimepull.MIMEParsingException*: Missing start
boundary</name><code>SysmanDefault:JAXRS:com.sun.jersey.multipart.impl.MultiPartReader.readFrom#203</code></error>



Request your inputs on this issue.