[ http://issues.apache.org/jira/browse/AXISCPP-452?page=all ]
     
Samisa Abeysinghe closed AXISCPP-452:
-------------------------------------

    Fix Version: 1.6 Alpha
     Resolution: Fixed

Fied to check for duplicates and if the attribute is already set, only change 
the value instead of creating another attribute.
However, I do not like the logic in createStdAttribute(), I think this needs 
some re-structuring

> createStdAttribute() API in IHeaderBlock allows duplicate attribute creation 
> within a tag
> -----------------------------------------------------------------------------------------
>
>          Key: AXISCPP-452
>          URL: http://issues.apache.org/jira/browse/AXISCPP-452
>      Project: Axis-C++
>         Type: Bug
>   Components: SOAP
>     Reporter: James Jose
>     Assignee: Samisa Abeysinghe
>     Priority: Minor
>      Fix For: 1.6 Alpha

>
> IHeaderBlock *phb1 = ws1.createSOAPHeaderBlock 
> "TestHeader","http://ws.apache.org/";);
> IAttribute *attr1 = 
> phb1->createStdAttribute(MUST_UNDERSTAND_TRUE,SOAP_VER_1_1);
> IAttribute *attr1a= 
> phb1->createStdAttribute(MUST_UNDERSTAND_TRUE,SOAP_VER_1_1);
> This code will create same standard attribute 'mustUnderstand' twice in the 
> headerblock. API should check whether the attribute is already created before 
> creating the new one.
> <SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/"; 
> SOAP-ENV:mustUnderstand="1" 
> SOAP-ENV:mustUnderstand="1"></ns2:TestHeader></SOAP-ENV:Header>

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to