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 Re: setUri() API - Usage
Date Fri, 07 Jan 2005 06:48:28 GMT
Roshan,

    Any idea about setUri() API in IAttribute class.
 
   Also I have some doubt about functionality of addNamespaceDecl() - 

 I tried the following code.
IHeaderBlock 
*phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.com");
                IAttribute 
*attr=phb->createNamespaceDecl("np","http://apache.com");
                phb->addNamespaceDecl(attr);

This generates the following SOAP header and results in an Exception.
<SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://axis.com" 
xmlns:np="http://apache.com" 
xmlns:np="http://apache.com"></ns2:TestHeader></SOAP-ENV:Header>
<SOAP-ENV:Body>

API documentation for addNamespaceDecl() says it sets the namespace 
declaration of the Header Block.




Thanks in advance..

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





James Jose/India/IBM@IBMIN 
04/01/2005 18:35
Please respond to
"Apache AXIS C Developers List"


To
axis-c-dev@ws.apache.org
cc

Subject
setUri() API - Usage







Hi 

   I have used setUri() API in the IAttribute class. But it is not changes 
the SOAP message anyway. 
   ie its not updated the namespace URI associated with the attribute 
prefix in SOAP Message. 

   So I just want to know why this API is used. 

   Thanks in advance 
     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