axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Jose <jamej...@in.ibm.com>
Subject Regarding createAttribute() in IHeaderBlock
Date Fri, 14 Jan 2005 13:15:59 GMT
Hi Roshan,

   A small doubt in createAttribute (const AxisChar *localname, const 
AxisChar *prefix, const AxisChar *uri, const AxisChar *value) API in 
IHeaderBlock
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 
   if I pass prefix as empty string and all other parameters like the 
following.
             HeaderBlock 
*phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.apache.com");
             IAttribute 
*attr=phb->createAttribute("Name","","http://apache.com","AXIS"); 
   This will create a namespace declaration.
  <SOAP-ENV:Header>
      <ns2:TestHeader xmlns:ns2="http://axis.apache.com" 
xmlns:ns3="http://apache.com" ns3:Name="AXIS">
      </ns2:TestHeader>
   </SOAP-ENV:Header>

   But In this API call if I give all the four parameters then it does not 
create a namespace declaration. 
        IHeaderBlock 
*phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.apache.com");
        IAttribute 
*attr=phb->createAttribute("Name","np","http://apache.com","AXIS");
   The resultant SOAP Header is
        <SOAP-ENV:Header>
             <ns2:TestHeader xmlns:ns2="http://axis.apache.com" 
np:Name="AXIS">
             </ns2:TestHeader>
        </SOAP-ENV:Header>

   Is this a bug?
 




Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail: jamejose@in.ibm.com


Mime
View raw message