The MIMEmessage, that  have  "Mimepart/Related" in content-type and  "This is 
mime message." is included brefore first boundary, can't  be received.
----------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-1170
                 URL: http://issues.apache.org/jira/browse/AXIS2-1170
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: transports
    Affects Versions: 1.0
            Reporter: Kazushi KANESHIRO


I was puzzled mime message is sent by certain web-client which is in the world 
can't recieved correctly.

Certain web-client always is "Multipart/Related" and send "This is MIME 
message." brefore first boundary.


I found that the part that will to be changed for the above case.



The part is follwing.(HTTPTransportUtils.java : line 175-185)
///////////////////////////////////////////////////////////////////////////////////////////////////


     if (contentType != null) {
                if 
(contentType.indexOf(HTTPConstants.HEADER_ACCEPT_MULTIPART_RELATED) > -1) {

                    // It is MIME (MTOM or SwA)
                    builder = TransportUtils.selectBuilderForMIME(msgContext, 
in, contentType);
                    envelope = (SOAPEnvelope) builder.getDocumentElement();
                } else {
                    XMLStreamReader xmlreader;

///////////////////////////////////////////////////////////////////////////////////////////////////


Constant "HTTPConstants.HEADER_ACCEPT_MULTIPART_RELATED" is "multipart/related".

I think that the above boolean-expression at if-sentence is false
in the case of receiving mime message 
that Content-Type which is a element of HTTPHeader is filled 
"Multipart/Related" 
and "This is MIME message." is brefore first boundary in the message.
In above case, I get exception at the parsing of received message.

I wish to change current boolean-expression to 
"contentType.toLowerCase().indexOf(HTTPConstants.HEADER_ACCEPT_MULTIPART_RELATED)
 > -1".

Thanks.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to