SOAPFault* internalSerialize method problems
--------------------------------------------

                 Key: WSCOMMONS-268
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-268
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


Problem:
The syntax for SOAP Fault is radically different for SOAP 1.1 and SOAP 1.2.  
The Axiom tree stores a model that represents SOAP 1.2.
When necessary the implementation methods override internalSerialize to 
serialize the xml using the correct protocol syntax.
The problem is the internalSerialize methods use a lot of "cut and paste" code 
from OMElementImpl.  An IBM developer, Gordon Kuo, has encountered several 
cases where the code is incorrect.

Solution:
I did some slight method refactoring.
If specialized code is necessary, the specialized serializeInternal code is 
placed within SOAP11Fault* classes.
If specialized code is not necessary (but ContentHandler registration is 
needed), the code does the registeration and upcalls to super.internalSerialize.

The new logic is smaller, easier to follow and will scale better.





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to