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

Updates not effective after saveChanges() or writeTo()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 1.2 Beta
    • None
    • SAAJ
    • None
    • JDK 1.4.2, Resin 2.1.14

    Description

      Not sure how to explain this in an understandable manner, but run this code and you will clearly see the problem:

      SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
      SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope(); // Get handle to envelope

      // soapMessage.writeTo(System.out); // This would give the same results
      soapMessage.saveChanges(); // This converts the SOAP message to String form (as a Fix for Bug 16418???)

      soapEnvelope.addChildElement("foo", "bar", "http://foo/bar"); // Add child elements
      soapMessage.writeTo(System.out); // The message is already in String form, and changes have no effect

      Attachments

        Issue Links

          Activity

            People

              venkat Venkat Reddy
              mate Mattias Jiderhamn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: