axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dyemme <dye...@indiana.edu>
Subject Re: setBody() and setHeader() problem in Axis 1.2 RC3
Date Fri, 16 Dec 2005 14:40:49 GMT
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 <dyemme@indiana.edu> 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
>         ()) != -1) {
>         > > >       SOAPBody soapBody = null;
>         > > >       SOAPHeader soapHeader = null; 
>         > > >       try {
>         > > >         soapBody = (SOAPBody) req.getBody();
>         > > >         soapHeader = (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 ()) !=
>         -1) {
>         > > >
>         > System.out.println
>         ("****************************************");
>         > > >       System.out.println(moduleName + "  Message has
>         been received
>         > \n"
>         > > > + req);
>         > > >
>         > System.out.println
>         ("*****************************************");
>         > > >     }
>         > > >   }
>         > > >
>         >
>         
> 
> 
> 
> -- 
> -- Jaya 


Mime
View raw message