axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkat Reddy (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Reopened: (AXIS-1960) 1.2Rc3: Changes to body or header do not get serialized
Date Sat, 28 May 2005 16:14:52 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1960?page=all ]
     
Venkat Reddy reopened AXIS-1960:
--------------------------------

     Assign To: Venkat Reddy

The earlier fix (setting dirty flag in NodeImpl.appendChild) was causing failures in ant all-tests.

> 1.2Rc3: Changes to body or header do not get serialized
> -------------------------------------------------------
>
>          Key: AXIS-1960
>          URL: http://issues.apache.org/jira/browse/AXIS-1960
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: JDK1.4.2_07
> Axis version 1.2Rc3
> Tomcat 5.0, Eclipse 3.0
>     Reporter: Jeff Saremi
>     Assignee: Venkat Reddy

>
> You can add a node or change the value of a node in body or header of a message but the
SerializationContext does not output these changes.
> You can see the changes using XMLUtils.xxxToString() methods.
> Having called saveChanges(), setEnvelope(), setProperty(org.apache.axis.SOAPPart.ALLOW_FORM_OPTIMIZATION,
...) have no effect on this at all.
> Example:
> org.apache.axis.message.SOAPBody body = (org.apache.axis.message.SOAPBody)env.getBody();
> Node myNode = body.getElementsByTagName("MyNodeName").item(0);
> myNode.appendChild(body.getOwnerDocument().createTextNode("SomeNewText"));
> // you can see the added text node in the followin output
> System.out.println(XMLUtils.ElementToString(body));
> // however, you will not see it in this one
> // therefore your changes are not avaialable to the next handler or service
> SerializationContext serContext = new SerializationContext(new PrintWriter(System.out),
message.getMessageContext());
> serContext.setSendDecl(true);
> serContext.setEncoding("UTF-8");
> body.output(serContext);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message