axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Whitlock (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-545) getNamespacePrefix() API in Call class does not return NULL for non existing namespace URI.
Date Wed, 16 Mar 2005 17:19:22 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-545?page=comments#action_60984 ]
     
Mark Whitlock commented on AXISCPP-545:
---------------------------------------

Having investigated it, I believe that Call::getNamespacePrefix is behaving correctly or at
least it is doing what it was intended to do.

The problem it is trying to solve happens when the Axis engine or a client application has
a namespace that it is going to use for an attribute or a headerblock or something and it
wants to get a new prefix for that namespace that hasn't been used before. So if that namespace
is already associated with a prefix, Call::getNamespacePrefix returns that prefix. If the
namespace is not associated with any prefix, Call::getNamespacePrefix creates a new prefix.
The prefixes it creates all start with ns and end with a number that it increments every time
to make sure it never returns the same prefix for different namespaces.

The soap serializer handles standard namespaces differently - those namespaces that are not
defined by the application. So Call::getNamespacePrefix doesn't know anything about those
and so will create a new prefix for them if they are passed in.

I have run DynamicGetNamespacePrefixTest and this is the behaviour you are seeing. Basically
the test needs to be rewritten. I am happy to rewrite the test if you would like, just let
me know. I will add in better comments in the Call::getNamespacePrefix API docs to explain
all this. Please let me know what you would like me do with this JIRA. Thanks.

> getNamespacePrefix() API in Call class does not return NULL for non existing namespace
URI.
> -------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-545
>          URL: http://issues.apache.org/jira/browse/AXISCPP-545
>      Project: Axis-C++
>         Type: Bug
>     Reporter: James Jose
>     Assignee: Mark Whitlock

>
> Instead of NULL getNamespacePrefix() API returns some prefix for non existing namespace
URI. Also API does not return correct prefix for existing namespace URIs.
> DynamicGetNamespacePrefixTest addresses these issues.

-- 
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