AFAIK Axis2 SAAJ implementation passes (or almost there) the SAAJ TCK and it uses the Axis2 SOAP with Attachments API.. So chances are that they both will interoperate..
Please report Jira's if you come across any issues.. Thanks, Thilina On 2/9/07, Rais, Apoorva (FID) <[EMAIL PROTECTED]> wrote:
Hi, I have a question related to same topic like can we have a client that uses axis2 api for creating SOAP message with attachments call a service that uses saaj-impl (SwA - sun) api? Thanks, Apoorva Rais -----Original Message----- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 8:34 AM To: [email protected] Cc: [EMAIL PROTECTED] Subject: Re: MTOM and SWA related problem It's not possible to change the encoding of the first part.. You can change the content-type of the attachment part by creating your DataHandler using org.apache.axiom.attachments.ConfigurableDataHandler. ConfigurableDataHandler is behaves same as the DataHandler and it has a setContentType method.. ~Thilina On 2/7/07, Yadav, Yogendra (IT) <[EMAIL PROTECTED]> wrote: > Thank you Dims. > One more question, when I used OperationClient API, the content-type > and content-transfer-encoding for first part look like this: > content-type: text/xml; charset=UTF-8 > content-transfer-encoding: 8bit > > And for attachment part look like this: > content-type: application/octet-stream > content-transfer-encoding: binary > > Is it possible to make "content-transfer-encoding: binary" for the > first part and "Content-Type: text/xml" for the attachment part ? > > Thanx, appreciate it. > -yogen > > > > -----Original Message----- > From: Davanum Srinivas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 06, 2007 4:22 PM > To: [email protected] > Subject: Re: MTOM and SWA related problem > > Yogen, > > Those are from Commons HTTP Client basically means that the client is > using http chunking. > > thanks, > dims > > On 2/6/07, Yadav, Yogendra (IT) <[EMAIL PROTECTED]> > wrote: > > > > > > > > Hi, > > Anyone who has used attachments with AXIS2 ? > > -yogen > > > > > > ________________________________ > > From: Yadav, Yogendra (IT) > > Sent: Tuesday, February 06, 2007 3:26 PM > > To: [email protected] > > Subject: FW: MTOM and SWA related problem > > > > > > > > > > Sorry if this email is repeated multiple times. I had corporate > > security issues sending attachments. > > > > Hi, > > This problem is related to using MTOM and SAAJ APIs in AXIS2. I am > > sending attachment to a service which is implemented using Sun's > > SAAJ implementation. When I use Sun's SAAJ as client to access this > > service > > > everything works well. But when use AXIS2's MTOM or SAAJ > > implementation, the service returns invalid response. I have noticed > > differences in the request message being sent in eiather case in > > TCPMon and noticed unusual characters in the request generated by > AXIS2. > > > > Can someone explain if these unusual characters are the cause of > > failure or its something else. > > > > Note: If you notice AXIS2's implementations insert unusual > > characters in the > > request: > > 1a97 <----------- > > --MIMEBoundaryurn_uuid_1E6396FC3B5AC6B6D31170792603911 > > 3a <----------- > > --MIMEBoundaryurn_uuid_1E6396FC3B5AC6B6D31170792603911-- > > 0 <----------- > > > > 1ba2 <----------- > > --MIMEBoundaryurn_uuid_6F2725CFB5F14717A21170792657850 > > 3a <----------- > > --MIMEBoundaryurn_uuid_6F2725CFB5F14717A21170792657850-- > > 0 <----------- > > > > > > I have attached below the relevant information from TCPMon . Any > > help > > > is appreciated. > > > > thanx > > -yogen > > > > axis2's SAAJ: > > -------------------- > > 1a97 > > > > --MIMEBoundaryurn_uuid_1E6396FC3B5AC6B6D31170792603911 > > > > content-type: application/xop+xml; charset=UTF-8; type="text/xml"; > > > > content-transfer-encoding: binary > > > > content-id: > > <0.urn:uuid:[EMAIL PROTECTED]> > > > > sun's SAAJ > > ------------------ > > ------=_Part_0_20918341.1170792531816 > > > > Content-Type: text/xml; charset=utf-8 > > > > Content-Id: <[EMAIL PROTECTED]> > > > > ________________________________ > > > > > > NOTICE: If received in error, please destroy and notify sender. > > Sender > > > does not intend to waive confidentiality or privilege. Use of this > > email is prohibited when received in error. > > > > ________________________________ > > > > > > NOTICE: If received in error, please destroy and notify sender. > > Sender > > > does not intend to waive confidentiality or privilege. Use of this > > email is prohibited when received in error. > > > > > -- > Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services > Developers > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------- This is not an offer (or solicitation of an offer) to buy/sell the securities/instruments mentioned or an official confirmation. Morgan Stanley may deal as principal in or own or act as market maker for securities/instruments mentioned or may advise the issuers. This is not research and is not from MS Research but it may refer to a research analyst/research report. Unless indicated, these views are the author's and may differ from those of Morgan Stanley research or others in the Firm. We do not represent this is accurate or complete and we may not update this. Past performance is not indicative of future returns. For additional information, research reports and important disclosures, contact me or see https://secure.ms.com/servlet/cls. You should not use e-mail to request, authorize or effect the purchase or sale of any security or instrument, to send transfer instructions, or to effect any other transactions. We cannot guarantee that any such requests received via e-mail will be processed in a timely manner. This communication is solely for the addressee(s) and may contain confidential information. We do not waive confidentiality by mistransmission. Contact me if you do not wish to receive these communications. In the UK, this communication is directed in the UK to those persons who are market counterparties or intermediate customers (as defined in the UK Financial Services Authority's rules).
-- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
