axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Updated: (AXISCPP-375) setPrefix() in IAttribute class does not check whether the given namespace prefix is declared or not
Date Wed, 02 Feb 2005 03:50:25 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-375?page=history ]

Samisa Abeysinghe updated AXISCPP-375:
--------------------------------------

    Component: SOAP

> setPrefix() in IAttribute class  does not check whether the given namespace prefix is
declared or not
> -----------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-375
>          URL: http://issues.apache.org/jira/browse/AXISCPP-375
>      Project: Axis-C++
>         Type: Bug
>   Components: SOAP
>     Reporter: James Jose
>     Assignee: Roshan Weerasuriya

>
> IHeaderBlock *phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.apache.com");
> IAttribute *attr=phb->createAttribute("Name","ns2","","Axis");
> attr->setPrefix("np");
>  The above code will generate the following soap header.
> <SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://axis.apache.com" np:Name="Axis"></ns2:TestHeader></SOAP-ENV:Header>
> Here the new prefix of Name is 'np' which is an undeclared one and so the request fails.
So the API should check whether the prefix is declared or not before setting it.
> createAttribute() API also sets the prefix of an Attribute. SO createAttribute() API
should also check for this declaration.

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