You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anish P S <an...@cs-techno.com> on 2010/02/05 09:29:40 UTC

[Axis2 not handling multipart/related response with type not given]

Axis2 not handling multipart/related response with type not given 

for ex:
HTTP/1.1 200 OK 

Date: Thu, 15 Feb 2007 11:04:37 GMT 

Server: Unknown 

Servlet-Engine: Unknown (Servlet 2.2; JSP 1.1) 

Content-Type: multipart/related; boundary="----=_Part_2138_31489537.1265354819888";


Need to tweak Axis2 kernal code org.apache.axis2.builder.Mimebuilder.java to process the response and download the attachments properly...

Code snippet added for adding type 

if(contentType.indexOf("multipart/related")>-1 && contentType.indexOf("type=")==-1){
      contentType=contentType+"; type=\"text/xml\"";
     }

contentType:multipart/related; boundary="----=_Part_2138_31489537.1265354819888"; type="text/xml";

i dont know whether there is another way to do this...

if so please let me know...




Regards,
Anish P S
CS-Techno Pvt Ltd
Cochin,India
Mob:9539299747
www.cs-techno.com