Is multipart/related mime supported?

58 views
Skip to first unread message

JML

unread,
Feb 3, 2014, 7:00:55 AM2/3/14
to ksoap2-...@googlegroups.com
Hi, 

I'm using ksoap2 in my android application to communicate with WS since a few weeks and for all methods works fine but now I am in a deep doubt, ksoap2 support mime multipart/related? I have been searching in Internet, in ksoap2 api, stackoverflow but I didn't find anything... I have a request like that:

<mime:multipartRelated>
<mime:part>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="parameters" use="literal"/>
</mime:part>
<mime:part>
<mime:content part="file" type="*/*"/>
</mime:part>
</mime:multipartRelated>

I have to send a request similar to this:
Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml;
        start="<xx.xml@XXX.xx>"
Content-Length: XXXX SOAPAction: "" Content-Description: This is the optional message description. --MIME_boundary Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-ID: <xxx...@XXX.xx> <?xml version='1.0' ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> ... </SOAP-ENV:Body> </SOAP-ENV:Envelope> --MIME_boundary Content-Type: image/tiff Content-Transfer-Encoding: base64 Content-ID: <file=xxx....@XXX.xx>
...Base64 encoded TIFF image... --MIME_boundary Content-Type: image/jpeg Content-Transfer-Encoding: binary Content-ID: <xxx....@XXX.xxm>
...Raw JPEG image.. --MIME_boundary--


All I have found it is to include the file inside of XML envelope but no out in a separate part, anybody know if it is posible? How can I do it? Or for this kind of messages I can not use koap2?

Many thanks, JML.
Reply all
Reply to author
Forward
0 new messages