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