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 "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/02/02 04:50:25 UTC

[jira] Updated: (AXISCPP-375) setPrefix() in IAttribute class does not check whether the given namespace prefix is declared or not

     [ 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