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 ji...@apache.org on 2004/03/22 16:23:57 UTC

[jira] Commented: (AXIS-390) RPCElement serialization doesn't use prefixes

The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Mon, 22 Mar 2004 7:23 AM
       Body:
Dirk,

Do you still need this patched in latest Axis?

thanks,
dims
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-390&page=comments#action_26452

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-390

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-390
    Summary: RPCElement serialization doesn't use prefixes
       Type: Bug

     Status: Open

    Project: Axis
 Components: 
             Serialization/Deserialization
   Versions:
             1.0-rc1

   Assignee: Axis Developers Mailing List
   Reporter: Dirk Wollscheid

    Created: Fri, 27 Sep 2002 12:26 AM
    Updated: Mon, 22 Mar 2004 7:23 AM
Environment: Operating System: Other
Platform: Other

Description:
The code in RPCElement.outputImpl creates a default namespace when using RPC/literal encoding. This means that all elements in message parts that have previously ment to unqualified are now in that default namespace. 

I suggest to avoid that
a) the user can set a prefix on RPCElement with setPrefix
b) the outputImpl code is change to not add a default namespace when this prefix is set. E.g. the code will be change to this:

       if (isRPC || noParams) {
            // Set default namespace if appropriate (to avoid prefix mappings
            // in literal style).  Do this only if there is no encodingStyle.
            if (encodingStyle != null && encodingStyle.equals("") && getPrefix()==null) {
                context.registerPrefixForURI("", getNamespaceURI());
            }
            context.startElement(new QName(namespaceURI,name), attributes);
        }

        for (int i = 0; i < params.size(); i++) {
            RPCParam param = (RPCParam)params.elementAt(i);
            if (!isRPC && encodingStyle.equals("") && getPrefix()==null) {
                context.registerPrefixForURI("", param.getQName().getNamespaceURI());
            }
            param.serialize(context);
        }


---------------------------------------------------------------------
JIRA INFORMATION:
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