You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2004/01/15 10:36:08 UTC

DO NOT REPLY [Bug 26158] New: - SOAP headers can't be deserialized to Java objects if SOAP 1.2 is enforced

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26158>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26158

SOAP headers can't be deserialized to Java objects if SOAP 1.2 is enforced

           Summary: SOAP headers can't be deserialized to Java objects if
                    SOAP 1.2 is enforced
           Product: Axis
           Version: current (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: tkoponen@iki.fi


After enforcing the Axis generated client stubs to use SOAP 1.2 with
"_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP12_CONSTANTS);" the
Axis SOAP server side is no more able to deserialize them.  However, if nothing
else is changed, the very same client works if SOAP 1.1 is enforced.

The SOAP request itself looks proper (checked with tcpmon) and in fact, the
server does have the headers as SOAPHeaderElement objects inside the SOAPHeader
object.  However, neither calling SOAPHeaderElement.getObjectValue(Class) nor
SOAPHeaderElement.getObValueAsType(QName) gives anything else than 'null' for
the caller.