Re: Error getting attachments from SOAPMessage

2009-01-27 Thread Andreas Veithen
Chinmoy, I had to do some more changes in order to make axis2-saaj compatible with the SAAJ specs and Sun's reference implementation. I believe that the issue should be fixed now in trunk. However: * For the DataHandler issue: the code in trunk still creates the AttachmentPart directly from the

Re: Error getting attachments from SOAPMessage

2009-01-07 Thread Andreas Veithen
See my comments inline. I also committed my test cases to axis2-saaj (see MessageFactoryTest). Obviously, since they don't pass yet, there are commented out. Can you uncomment them and check your modifications against them? Andreas On Mon, Jan 5, 2009 at 07:43, Chinmoy Chakraborty

Re: Error getting attachments from SOAPMessage

2009-01-04 Thread Andreas Veithen
Chinmoy, I've started to write some unit tests that compare the behavior of createMessage in Axis2's SAAJ implementation (including your proposed changes) with Sun's reference implementation. One issue I see is related to the way the contentId property is set on SOAPPart and AttachmentPart. The

Re: Error getting attachments from SOAPMessage

2009-01-01 Thread Andreas Veithen
Chinmoy, The code you added in SOAPMessageImpl to some extent duplicates the code in Attachments#getSOAPPartContentID. Is there a particular reason for this? Andreas On Wed, Dec 31, 2008 at 14:59, Chinmoy Chakraborty cch...@gmail.com wrote: Hi Andreas, I walked through the code

Re: Error getting attachments from SOAPMessage

2009-01-01 Thread Chinmoy Chakraborty
Hi Andreas, Yes, the code for extracting rootcontent-id is duplicate code. The code can be put in a protected method in SOAPPartImpl.I had to do that because, in Attachments SOAPPart comes also as attachment. It requires to discard SOAPPart attachment from the attachment map while adding the

Re: Error getting attachments from SOAPMessage

2008-12-23 Thread Chinmoy Chakraborty
Andreas, I am stuck with the attachments. I have sent many mails in this forum mentioning the issue regarding creation of SOAPMessage with attachments from Inputstream but no one replied me back. Previously you have mentioned that asix saaj api has been moved to gerenimo. Could you please send

Re: Error getting attachments from SOAPMessage

2008-12-23 Thread Andreas Veithen
On Tue, Dec 23, 2008 at 12:17, Chinmoy Chakraborty cch...@gmail.com wrote: Andreas, I am stuck with the attachments. I have sent many mails in this forum mentioning the issue regarding creation of SOAPMessage with attachments from Inputstream but no one replied me back. Previously you have

Re: Error getting attachments from SOAPMessage

2008-12-18 Thread Andreas Veithen
Chinmoy, Can you also attach a sample message that you try to read with this code? Andreas On Thu, Dec 18, 2008 at 06:23, Chinmoy Chakraborty cch...@gmail.com wrote: Andreas, Here is my code snippet. String contentType = multipart/related;

Re: Error getting attachments from SOAPMessage

2008-12-18 Thread Chinmoy Chakraborty
Andreas, Please find attached attachment.xml which I am using as inputstream to create SOAPMessage. The MIME boundary in my previous code snippet may differ since it is generated at runtime but this is the file generated by another system. I am also sending you the code that generates the

Re: Error getting attachments from SOAPMessage

2008-12-18 Thread Andreas Veithen
Chinmoy, I walked through the axis2-saaj code and indeed when creating a message from an input stream using MessageFactory, axis2-saaj doesn't even request the attachments from Axiom. However, I'm not familiar enough with the code to be able to fix this myself. Maybe somebody else can help here?

Error getting attachments from SOAPMessage

2008-12-17 Thread Chinmoy Chakraborty
Hi All, I am creating SOAPMessage from inputstream. The inputstream is SOAP with attachments. But the attachmentParts becomes zero in the newly created SOAPMessage though the content type is multipart/related. Why it is not created attachments when I am creating SOAP from inputstream (with

Re: Error getting attachments from SOAPMessage

2008-12-17 Thread Andreas Veithen
Chinmoy, Can you post the code that demonstrates the problem? Andreas On Wed, Dec 17, 2008 at 13:40, Chinmoy Chakraborty cch...@gmail.com wrote: Hi All, I am creating SOAPMessage from inputstream. The inputstream is SOAP with attachments. But the attachmentParts becomes zero in the newly

Re: Error getting attachments from SOAPMessage

2008-12-17 Thread Chinmoy Chakraborty
Andreas, Here is my code snippet. String contentType = multipart/related; boundary=MIMEBoundaryurn_uuid_D988AB74BC9802BDC21229577126047; type=text/xml; start=0.urn:uuid:d988ab74bc9802bdc21229577126...@apache.org0.urn%3auuid%3ad988ab74bc9802bdc21229577126...@apache.org MimeHeaders