Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-1591

Migration from Axis 1.1 (or 1.2Beta)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • JDK 1.4.2_04, Windows XP, JBoss

    Description

      I'm trying to migrate to AXIS 1.2RC1 and the application which worked perfectly under 1.1 and 1.2Beta3 is suddenly not working any more.

      The fragment in question is shown below:

      response = fac.createMessage();

      SOAPPart part = response.getSOAPPart();
      SOAPEnvelope envelope = part.getEnvelope();
      envelope.addNamespaceDeclaration("cwmp", uri);
      SOAPBody body = envelope.getBody();
      SOAPHeader header = envelope.getHeader();

      response = createHeader(response);

      // Create SOAPBodyElement request
      Name bodyName =
      envelope.createName("InformResponse", "cwmp", uri);
      SOAPBodyElement informResponseElement = body.addBodyElement(bodyName);

      SOAPElement maxEnvelopesElement = informResponseElement.addChildElement(maxEnvelopesName);
      maxEnvelopesElement.addTextNode("1");
      response.saveChanges();

      The message assembled before was:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
      <soapenv:Header>
      <cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
      </soapenv:Header>
      <soapenv:Body>
      <cwmp:InformResponse xmlns:cwmp......>
      <MaxEnvelopes xmlns="">1</MaxEnvelopes>
      </soapenv:Body>
      </soapenv:Envelope>

      Now it comes up as:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
      <soapenv:Header>
      <cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
      </soapenv:Header>
      <soapenv:Body/>
      </soapenv:Envelope>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reinerka Reiner Kappenberger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: