[ http://issues.apache.org/jira/browse/AXISCPP-375?page=history ]
Fred Preston reassigned AXISCPP-375:
------------------------------------
Assign To: Fred Preston (was: Roshan Weerasuriya)
> 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: Fred Preston
>
> 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