Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 85163 invoked from network); 8 Feb 2006 23:34:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Feb 2006 23:34:07 -0000 Received: (qmail 90780 invoked by uid 500); 8 Feb 2006 23:33:58 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 90762 invoked by uid 500); 8 Feb 2006 23:33:57 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 90751 invoked by uid 99); 8 Feb 2006 23:33:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2006 15:33:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of deepgun74@gmail.com designates 66.249.82.207 as permitted sender) Received: from [66.249.82.207] (HELO xproxy.gmail.com) (66.249.82.207) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2006 15:33:56 -0800 Received: by xproxy.gmail.com with SMTP id t15so10871wxc for ; Wed, 08 Feb 2006 15:33:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LCle+/h8BMN8VU2d1SjAWofdYPL8KCV8wIRKCICIzp1RoaqnfzFeZl6u6lU+KEfA2xRY4MytAeCd5XUbEebJEW20SJA+fg53gJYeK2SNp8QTsOxvl5gXX1OACn/YBFmmgg5eKcofIUaKo08eFj4X23LD1Nalq0yqDn+viRvxoOk= Received: by 10.70.113.2 with SMTP id l2mr7602582wxc; Wed, 08 Feb 2006 15:33:35 -0800 (PST) Received: by 10.70.110.4 with HTTP; Wed, 8 Feb 2006 15:33:35 -0800 (PST) Message-ID: Date: Wed, 8 Feb 2006 17:33:35 -0600 From: Pradeep Reddy To: axis-user@ws.apache.org Subject: Help! - WebSphere 5.1.1 issue with attachments MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8444_6437807.1139441615923" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_8444_6437807.1139441615923 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I am having trouble accessing the Response Message on WebSphere 5.1.1. I am trying to send an attachment from server to the client. I add it to th= e response message using this familiar code snippet. MessageContext msgContext =3D MessageContext.getCurrentContext(); Message msg =3D msgContext.getResponseMessage(); msg.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME); AttachmentPart part =3D new AttachmentPart(new DataHandler(new ArtifactDataSource(ais.getInfo().getName(),ais.getInputStream(), ais.getContentType().toString())));//ArtifactDataSource is a custom implementation of datasource part.setContentId(ais.getInfo().getName()); msg.addAttachmentPart(part); msg.saveChanges(); this code returns an attachment on weblogic 8.1. On WebSphere 5.1.1, i am getting back a response with no xml message in it. I just get back these headers with no xml message or the attachment. HTTP/1.1 200 OK Date: Wed, 08 Feb 2006 20:48:43 GMT Server: IBM_HTTP_SERVER/1.3.28.1 Apache/1.3.28 (Unix) Connection: close Content-Type: multipart/related; type=3D"text/xml"; start=3D""; boundary=3D 1446154572.1139431723394.JavaMail.test.bluto To debug, I retained only these calls: MessageContext msgContext =3D MessageContext.getCurrentContext(); Message msg =3D msgContext.getResponseMessage(); This returned an empty soap message. HTTP/1.1 200 OK Date: Wed, 08 Feb 2006 22:00:48 GMT Server: IBM_HTTP_SERVER/1.3.28.1 Apache/1.3.28 (Unix) Connection: close Content-Type: text/xml; charset=3Dutf-8 So when i call getResponseMessage(), its going through a seperate path and giving me a brand new response. I am using axis 1.2 RC2. Any help on what i can do to work around this problem would be greatly appreciated. Thanks, Pradeep ------=_Part_8444_6437807.1139441615923 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all,

I am having trouble accessing the Response Message on WebSph= ere 5.1.1.
I am trying to send an attachment from server to the client. = I add it to the response message using this familiar code snippet.

MessageContext msgContext =3D MessageCo= ntext.getCurrentContext();
Message msg =3D msgContext.getResponseMessage()= ;
msg.g= etAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME);  &nb= sp;           
AttachmentPart pa= rt =3D new AttachmentPart(new DataHandler(new ArtifactDataSource( ais.getInfo().getName(),ais.getInputStream(),ais.getContentType().toString(= ))));//ArtifactDataSource is a custom implementation of datasourcepart.se= tContentId (ais.getInfo().getName());
msg.addAttachmentPart(part);
msg.saveChanges()= ;

this code returns an attachment on weblogic 8.1. On WebSphere 5.1.1= , i am getting back a response with no xml message in it. I just get back t= hese headers with no xml message or the attachment.
HTTP/1.1 200 OK
Date: Wed, 08 Feb 2006 20:48:43 GMT
= Server: IBM_HTTP_SERVER/1.3.28.1  Apache/1.3.28 (Unix)
Connection: = close
Content-Type: multipart/related; type=3D"text/xml"; star= t=3D"<AA9A919955D1C926B85316860BEE7F3F>"; boundary=3D 1446154572.1139431723394.JavaMail.test.bluto


To debug, = I retained only these calls:

MessageContext msgContext =3D MessageContext.getCurrentContext(); Message msg =3D msgContext.getResponseMessage();

This returne= d an empty soap message.
HTTP/1.1 200 OK
Date: Wed, 08 Feb 2006 22:00:48 GMT
Server: IBM_H= TTP_SERVER/1.3.28.1  Apache/1.3.28 (Unix)
Connection: close
Content-Type: text/xml; charset=3Dutf-8
<soa= penv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs= d=3D" http://www.w3.org/2001/XMLSche= ma" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
<so= apenv:Body/>
</soapenv:Envelope>


So when i call getRespons= eMessage(), its going through a seperate path and giving me a brand new res= ponse. I am using axis 1.2 RC2.
Any help on what i can do to work around= this problem would be greatly appreciated.=20

Thanks,

Pradeep


------=_Part_8444_6437807.1139441615923--