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

Reply via email to