axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa (JIRA)" <>
Subject [jira] Closed: (AXISCPP-573) problem in setURI() API in IAttribute class
Date Tue, 07 Jun 2005 11:43:17 GMT
     [ ]
Dushshantha Chandradasa closed AXISCPP-573:


> problem in setURI() API in IAttribute class
> -------------------------------------------
>          Key: AXISCPP-573
>          URL:
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: Dushshantha Chandradasa

> If the prefix of the attribute is empty and if I use setURI() then the Attribute class
correctly serialize by adding the correct prefix and if necessary will even add the namespace
declaration to the serialized output.
> IAttribute *attr1=phb->createAttribute("Name","","axis");
> attr1->setURI("");
> will create the following soap message
> <ns:TestHeader xmlns:ns="" xmlns:ns2=""
> Here setURI() results in generating a namespace declaration for the uri ""
and used the generated prefix 'ns2' as the prefix for 'Name' attribute.
>  But if the attribute prefix is not empty, then this setURI() does not change its prefix.
> INamespace *nsp=phb->createNamespaceDecl ("nsp","");
> IAttribute *attr1=phb->createAttribute("Name","nsp","axis");
> attr1->setURI("");
> results in 
> <ns:TestHeader xmlns:ns="" nsp:Name="axis" xmlns:nsp="">
> attr1->getPrefix() will return 'nsp'
> attr1->getURI() will return ''
> but there is no namespace declaration for this combination.
> So either
>  1.setURI() should also change the prefix value accordingly.
>  2.setURI() should not change the URI if prefix is already set.
>  3.setURI() should be removed from the API list.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message