[ http://issues.apache.org/jira/browse/WSCOMMONS-38?page=comments#action_12415571 ]
Glen Daniels commented on WSCOMMONS-38: --------------------------------------- IMHO, this is indeed a bug. It's fine to use the SOAP 1.2 *APIs* when thinking about services at the "abstract" level (i.e. OM). I do not think it is OK to actually return incorrect XML when using getXMLStreamReader() on a SOAP11 envelope. What gets output from serialize() should always be the same as what you get from the XMLStreamReader, regardless of whether the OM was generated programatically or read in from a stream. Make sense? > SOAP11FaultCodeImpl contains SOAP 1.2 local name > ------------------------------------------------ > > Key: WSCOMMONS-38 > URL: http://issues.apache.org/jira/browse/WSCOMMONS-38 > Project: WS-Commons > Type: Bug > Components: AXIOM > Environment: AXIOM 1.0, JDK 1.5 > Reporter: Arjen Poutsma > Assignee: Eran Chinthaka > Attachments: Tester.java > > The class org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl does not > override the localname of its parent > org.apache.axiom.soap.impl.llom.SOAPFaultCodeImpl. Since this parent class > contains the SOAP 1.2 specific SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME as > localname, the localname is of the SOAP 1.1 subclass is not set correctly. > Oviously, this code should be in > org.apache.axiom.soap.impl.llom.soap12.SOAP12FaultCodeImpl, and not in the > non-version specific superclass. In general, there seems to be a lot of > defaulting to SOAP 1.2-specific stuff in the org.apache.axiom.soap.impl.llom > package. This should be moved to the version-specific subclasses. > The errors become clear when obtaining an XMLStreamReader from the fault > code, and reading from that. Serializing to an outputstream does work > correctly, since the serialize methods are properly overridden. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
