Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 9226 invoked from network); 19 Dec 2005 12:35:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 12:35:30 -0000 Received: (qmail 87723 invoked by uid 500); 19 Dec 2005 12:35:05 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 87408 invoked by uid 500); 19 Dec 2005 12:35:03 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 86516 invoked by uid 99); 19 Dec 2005 12:34:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 04:34:54 -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 jayachandra@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO zproxy.gmail.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 04:34:12 -0800 Received: by zproxy.gmail.com with SMTP id f1so1183074nzc for ; Mon, 19 Dec 2005 04:33:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FVlsQEKD38+gQvpXvH+8eVh4zh00E3NVeCfQND1c6tsl7GmJXW20sdW2Oyeuhzz+3H4RUj0yuSkh24iPHnYJk/KIj0bEBUWTGgO+j6wfAaCGkX02++iaWQBWNd2BfMz7gYt1XjDeVqAFIxDXxM4tRnXqobKLBsTGuzz5FZL2Wlo= Received: by 10.65.157.12 with SMTP id j12mr2963662qbo; Mon, 19 Dec 2005 04:33:51 -0800 (PST) Received: by 10.65.141.11 with HTTP; Mon, 19 Dec 2005 04:33:51 -0800 (PST) Message-ID: <57023d130512190433g760b5870k9ee2ae50943f656@mail.gmail.com> Date: Mon, 19 Dec 2005 18:03:51 +0530 From: jayachandra To: axis-dev@ws.apache.org Subject: Re: setBody() and setHeader() problem in Axis 1.2 RC3 In-Reply-To: <1134744049.1673.1.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_36434_8774755.1134995631677" References: <1134593991.21637.7.camel@localhost.localdomain> <57023d130512160406j678c2f39qb723786140eb0190@mail.gmail.com> <1134744049.1673.1.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_36434_8774755.1134995631677 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi dyemme! You sure there wasn't any exception thrown? It could be that the exception got *swallowed* somewhere in between. Can you JIRA this, if you have a test client. If not, plz let me know, I've a minimal test client with which I got the earlier mentioned exception. Meanwhile I'll dig down into the cause of the problem and fix it. Thanks Jayachandra On 12/16/05, dyemme wrote: > > Hi Jaya, > > It didn't through the exception in my case but it sets the body and > header empty. Request envelope has both body and header but response > envelope is empty. > > Thanks, > Damodar. > > On Fri, 2005-12-16 at 17:36 +0530, jayachandra wrote: > > Hi Damodar, > > Did u get some exception like the following... > > > > javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: > > org.w3c.dom.DOMExcep > > tion: NodeImpl Not found > > at org.apache.axis.message.SOAPBody.setParentElement > > (SOAPBody.java :91) > > at org.apache.axis.message.SOAPEnvelope.setBody > > (SOAPEnvelope.java:309) > > at mytest.soapenvelope.TestSOAPEnvelope.setBody > > (TestSOAPEnvelope.java:16 > > ) > > at mytest.soapenvelope.TestSOAPEnvelope.main > > (TestSOAPEnvelope.java:40) > > Caused by: javax.xml.soap.SOAPException: org.w3c.dom.DOMException: > > NodeImpl Not > > found > > at org.apache.axis.message.NodeImpl.setParentElement > > (NodeImpl.java:634) > > at org.apache.axis.message.SOAPBody.setParentElement > > (SOAPBody.java:88) > > ... 3 more > > Caused by: org.w3c.dom.DOMException: NodeImpl Not found > > at org.apache.axis.message.NodeImpl.removeChild > > (NodeImpl.java:515) > > at org.apache.axis.message.SOAPEnvelope.removeChild > > (SOAPEnvelope.java:61 > > 7) > > at org.apache.axis.message.NodeImpl.detachNode > > (NodeImpl.java:661) > > at org.apache.axis.message.NodeImpl.appendChild > > (NodeImpl.java:493) > > at org.apache.axis.message.NodeImpl.setParent > > (NodeImpl.java:792) > > at org.apache.axis.message.NodeImpl.setParentElement > > (NodeImpl.java:632) > > ... 4 more > > > > I want to make sure I reproduced your problem properly. > > > > Thanks > > Jaya > > > > On 12/15/05, dyemme wrote: > > Hi Tom, > > > > It didn't work with Axis 1.3 Final either. It works only with > > Axis 1.2 > > Beta and older versions. I don't what changes they made to the > > latest > > releases. > > > > Thanks, > > Damodar. > > > > On Wed, 2005-12-14 at 12:27 -0800, Tom Jordahl wrote: > > > Why don't you try the 1.3 final release or a build of the > > current source > > > tree and see if the problem is fixed. > > > > > > -- > > > Tom Jordahl > > > Adobe ColdFusion Team > > > > > > > -----Original Message----- > > > > From: dyemme [mailto:dyemme@indiana.edu] > > > > Sent: Wednesday, December 14, 2005 10:55 AM > > > > To: axis-dev@ws.apache.org > > > > Subject: Re: setBody() and setHeader() problem in Axis 1.2 > > RC3 > > > > > > > > Hi All, > > > > > > > > Can anybody (axis core development team) through some > > light on this > > > > issue? > > > > > > > > These methods work perfectly in Axis1.2 Beta and not in > > Axis1.2 RC1.3. > > > > It might be a bug or issue in AXIS. Right now these > > methods are > > > setting > > > > null into SOAP Message. > > > > > > > > Thanks, > > > > Damodar. > > > > > > > > On Tue, 2005-12-13 at 11:47 -0500, dyemme wrote: > > > > > Hi, > > > > > > > > > > I have a problem with two methods in the Axis latest > > release and I > > > don't > > > > > have this problem in the Axis 1.2 Beta versions. The > > setBody() and > > > > > setHeader() methods in the SOAPEnvelope are not working > > properly in > > > > > latest Axis release. Is there any substitute to this > > methods in the > > > > > latest release?. > > > > > > > > > > Thanks, > > > > > Damodar. > > > > > > > > > > Here are the details. > > > > > > > > > > public void wsInfraProcessMethod(SOAPEnvelope req, > > SOAPEnvelope > > > resp) { > > > > > if (req.toString().indexOf( > > > > > WsrmServiceParameters.getApplicationMessage > > ()) !=3D -1) { > > > > > SOAPBody soapBody =3D null; > > > > > SOAPHeader soapHeader =3D null; > > > > > try { > > > > > soapBody =3D (SOAPBody) req.getBody(); > > > > > soapHeader =3D (SOAPHeader) req.getHeader(); > > > > > } > > > > > catch (SOAPException ex) { > > > > > ex.printStackTrace(); > > > > > } > > > > > > > > > > resp.setBody(soapBody); > > > > > resp.setHeader(soapHeader); > > > > > > > > > > > > > > > System.out.println > > ( "*************************************"); > > > > > System.out.println(moduleName + " Sending message > > reliably \n" > > > + > > > > > resp); > > > > > System.out.println > > ( "*************************************"); > > > > > } > > > > > if (req.toString().indexOf( > > > > > WsrmServiceParameters.getResponseMessage ()) !=3D > > -1) { > > > > > > > > System.out.println > > ("****************************************"); > > > > > System.out.println(moduleName + " Message has > > been received > > > \n" > > > > > + req); > > > > > > > > System.out.println > > ("*****************************************"); > > > > > } > > > > > } > > > > > > > > > > > > > > > > > > -- > > -- Jaya > > -- -- Jaya ------=_Part_36434_8774755.1134995631677 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi dyemme!
You sure there wasn't any exception thrown? It could be that the excep= tion got *swallowed* somewhere in between.
Can you JIRA this, if you have a test client. If not, plz let me = know, I've a minimal test client with which I got the earlier mentione= d exception.
Meanwhile I'll dig down into the cause of the problem and f= ix it.
 
Thanks
Jayachandra
 
On 12/16/05, dyemme <dyemme@indiana.edu> wrote:
Hi Jaya,

It didn't throug= h the exception in my case but it sets the body and
header empty. Reques= t envelope has both body and header but response
envelope is empty.

Thanks,
Damodar.

On Fri, 2005-12-16= at 17:36 +0530, jayachandra wrote:
> Hi Damodar,
> Did u get s= ome exception like the following...
>
> javax.xml.soap.SOAPExce= ption : javax.xml.soap.SOAPException:
> org.w3c.dom.DOMExcep
> tion: = NodeImpl Not found
>         = at org.apache.axis.message.SOAPBody.setParentElement
> (SOAPBody.java= :91)
>         at org.apache= .axis.message.SOAPEnvelope.setBody
> (SOAPEnvelope.java:309)
>      = ;   at mytest.soapenvelope.TestSOAPEnvelope.setBody
> (Test= SOAPEnvelope.java:16
> )
>      &= nbsp;  at mytest.soapenvelope.TestSOAPEnvelope.main
> (TestSOAPE= nvelope.java :40)
> Caused by: javax.xml.soap.SOAPException: org.w3c.dom.DOMExcept= ion:
> NodeImpl Not
> found
>    &nbs= p;    at org.apache.axis.message.NodeImpl.setParentElement> (NodeImpl.java:634)
>       = ;  at=20 org.apache.axis.message.SOAPBody.setParentElement
> (SOAPBody.java:88= )
>         ... 3 more
>= ; Caused by: org.w3c.dom.DOMException: NodeImpl Not found
> &nbs= p;       at org.apache.axis.message.NodeImpl.= removeChild
> (NodeImpl.java:515)
>      &nb= sp;  at org.apache.axis.message.SOAPEnvelope.removeChild
> (SOAP= Envelope.java:61
> 7)
>      &nbs= p;  at org.apache.axis.message.NodeImpl.detachNode
> (NodeImpl.j= ava :661)
>         at org.apache= .axis.message.NodeImpl.appendChild
> (NodeImpl.java:493)
> = ;        at org.apache.axis.message.Node= Impl.setParent
> (NodeImpl.java:792)
>    &= nbsp;    at org.apache.axis.message.NodeImpl.setParentElemen= t
> (NodeImpl.java:632)
>      &nb= sp;  ... 4 more
>
> I want to make sure I reproduced your = problem properly.
>
> Thanks
> Jaya
>
> On 12= /15/05, dyemme <
dyemme@indiana.edu> wrote:
>     &nbs= p;   Hi Tom,
>
>      &= nbsp;  It didn't work with Axis 1.3 Final either. It works only with>         Axis 1.2
>&nbs= p;        Beta and older versions. I don= 't what changes they made to the
>         latest
>&nbs= p;        releases.
>
> = ;        Thanks,
>  &nbs= p;      Damodar.
>
>   =       On Wed, 2005-12-14 at 12:27 -0800, Tom Jorda= hl wrote:
>         > Why = don't you try the=20 1.3 final release or a build of the
>     &n= bsp;   current source
>      =    > tree and see if the problem is fixed.
>  =        >
>    &n= bsp;    > --
>      &= nbsp;  > Tom Jordahl
>      &nb= sp;  > Adobe ColdFusion Team
>         >
> =         > > -----Original Message-= ----
>         > > From= : dyemme [mailto:dyemme@indiana.edu]
>         > > Sent:= Wednesday, December 14, 2005 10:55 AM
>         > > To:
axis-dev@ws.apache.org
>&nb= sp;        > > Subject: Re: setBod= y() and setHeader() problem in Axis 1.2
>    &nbs= p;    RC3
>       &= nbsp; > >
>         > > Hi All,<= br>>         > >
>&n= bsp;        > > Can anybody (axis = core development team) through some
>     &n= bsp;   light on this
>      &= nbsp;  > > issue?
>      &nb= sp;  > >
>         > > These me= thods work perfectly in Axis1.2 Beta and not in
>   &n= bsp;     Axis1.2 RC1.3.
>    =      > > It might be a bug or issue in AXIS. Righ= t now these
>         methods= are
>         > setting
>&n= bsp;        > > null into SOAP Mes= sage.
>         > >
= >         > > Thanks,
&= gt;         > > Damodar.
&= gt;         > >
> =         > > On Tue, 2005-12-13 at = 11:47 -0500, dyemme wrote:
>         > > > Hi,=
>         > > >
= >         > > > I have = a problem with two methods in the Axis latest
>   &nbs= p;     release and I
>    &nb= sp;    > don't
>      = ;   > > > have this problem in the Axis=20 1.2 Beta versions. The
>       &nb= sp; setBody() and
>         &= gt; > > setHeader() methods in the SOAPEnvelope are not working
&g= t;         properly in
> = ;        > > > latest Axis rele= ase. Is there any substitute to this
>         methods in the
= >         > > > latest = release?.
>         > >= >
>         > > >= ; Thanks,
>         > >= > Damodar.
>         >= > >
>         > > > Here ar= e the details.
>         >= > >
>         > >= ; > public void wsInfraProcessMethod(SOAPEnvelope req,
> &nbs= p;       SOAPEnvelope
>  &nbs= p;      > resp) {
>         > > > &n= bsp;   if (req.toString().indexOf(
>    = ;     > > >      = ;    WsrmServiceParameters.getApplicationMessage
>= ;         ()) !=3D -1) {
>&nb= sp;        > > >  &nb= sp;    SOAPBody soapBody =3D null;
>         > > >&nbs= p;      SOAPHeader soapHeader =3D null;
>&nb= sp;        > > >  &nb= sp;    try {
>      &nbs= p;  > > >         soa= pBody =3D (SOAPBody) req.getBody();
>     &n= bsp;   > > >       &n= bsp; soapHeader =3D (SOAPHeader)=20 req.getHeader();
>         &g= t; > >       }
>   = ;      > > >     = ;  catch (SOAPException ex) {
>     &nb= sp;   > > >       &nb= sp; ex.printStackTrace();
>       =   > > >       }
>         > > >
>=          > > >  =     resp.setBody(soapBody);
>   &n= bsp;     > > >     &n= bsp;resp.setHeader(soapHeader);
>      =    > > >
>      &nbs= p;  > > >
>       &n= bsp; > > >      =20 System.out.println
>         = ( "*************************************");
>  &n= bsp;      > > >    &n= bsp;  System.out.println(moduleName + " Sending message
>&n= bsp;        reliably \n"
>&nb= sp;        > +
>         > > > res= p);
>         > > >&= nbsp;      System.out.println
>  &= nbsp;      (  "********************= *****************");
>       =   > > >     }
>   &n= bsp;     > > >     if ( req.toString().indexOf(
>       &n= bsp; > > >         WsrmSer= viceParameters.getResponseMessage ()) !=3D
>    &= nbsp;    -1) {
>      &n= bsp;  > > >
>       =   > System.out.println
>      &= nbsp;  ("****************************************");
>         > > >&nbs= p;      System.out.println(moduleName + "&nbs= p; Message has
>        = been received
>         >= \n"
>         > >= > + req);
>         > = > >
>         > System.out.printl= n
>         ("**********= *******************************");
>    &nbs= p;    > > >     }
> =         > > >   }
= >         > > >
>=          >
>
>
>
>
> --
> -- Jaya




--
-- Jaya=20 ------=_Part_36434_8774755.1134995631677--