axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Keese (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1784) Axis client should not generate xsi:type attributes in document/literal or wrapped/literal mode
Date Thu, 27 Jan 2005 02:11:18 GMT
Axis client should not generate xsi:type attributes in document/literal or wrapped/literal
mode
-----------------------------------------------------------------------------------------------

         Key: AXIS-1784
         URL: http://issues.apache.org/jira/browse/AXIS-1784
     Project: Axis
        Type: Bug
    Versions: 1.2RC2    
    Reporter: Bill Keese
    Priority: Minor


Axis generates xsi:type=... attribute definitions even in literal mode.  It shouldn't.  The
fix should be in SerializationContext:

            sendXSIType = ( msgContext.getOperationUse() == Use.ENCODED );

(or something like that).

Also, ArraySerializer() has the following code which shouldn't be executed except for RPC/Encoded
mode:
            if (typeI != -1) {
                attrs.setAttribute(typeI,
                                   schema.getXsiURI(),
                                   "type",
                                   qname,
                                   "CDATA",
                                   context.qName2String(soapArray));
            } else {
                attrs.addAttribute(schema.getXsiURI(),
                                   "type",
                                   qname,
                                   "CDATA",
                                   context.qName2String(soapArray));
            }


Workaround:

In client code, do

     call.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);



-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message