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("*****************************************"); > } > } >