You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "James Jose (JIRA)" <ax...@ws.apache.org> on 2005/03/14 14:06:10 UTC
[jira] Created: (AXISCPP-545) getNamespacePrefix() API in Call class does not return NULL for non existing namespace URI.
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
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
[jira] Commented: (AXISCPP-545) getNamespacePrefix() API in Call class does not return NULL for non existing namespace URI.
Posted by "James Jose (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-545?page=comments#action_61078 ]
James Jose commented on AXISCPP-545:
------------------------------------
If we pass namespace URI for SOAP-ENV,
getNamespacePrefix() API correctly returns the prefix. But not for other standard namespaces.
I am not sure about this behaviour.
No documentation for Call class APIs are available.
So can you please modify the test case.
> 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
[jira] Closed: (AXISCPP-545) getNamespacePrefix() API in Call class does not return NULL for non existing namespace URI.
Posted by "Mark Whitlock (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-545?page=history ]
Mark Whitlock closed AXISCPP-545:
---------------------------------
Resolution: Invalid
I am returning this JIRA as "invalid" because (as I have explained above) the APIs are working as designed. Please reopen this JIRA if you would like me to rewrite the testcase, or you find subsequent bugs.
> 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
[jira] Commented: (AXISCPP-545) getNamespacePrefix() API in Call class does not return NULL for non existing namespace URI.
Posted by "Mark Whitlock (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Assigned: (AXISCPP-545) getNamespacePrefix() API in Call class does not return NULL for non existing namespace URI.
Posted by "Mark Whitlock (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-545?page=history ]
Mark Whitlock reassigned AXISCPP-545:
-------------------------------------
Assign To: Mark Whitlock
> 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