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: [jira] Commented: (AXISCPP-360) compilation error when using APIs in BasicNode
Date Thu, 06 Jan 2005 13:58:45 GMT
Hi Roshan,
    I was referring an old API documentation. In that the return type of 
getFirstChild() was const BasicNode *. That's why I used  const BasicNode* 
object. 
 Now my problem is solved. 


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





"Roshan Weerasuriya (JIRA)" <axis-c-dev@ws.apache.org> 
06/01/2005 15:46
Please respond to
"Apache AXIS C Developers List"


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

Subject
[jira] Commented: (AXISCPP-360) compilation error when using APIs in 
BasicNode






     [ 
http://issues.apache.org/jira/browse/AXISCPP-360?page=comments#action_57343 
]
 
Roshan Weerasuriya commented on AXISCPP-360:
--------------------------------------------

The methods in the BasicNode are not constant methods. The BasicNode 
object which you have creted is a constant object, so you can't call non 
constant methods (such as getLocalName() etc) of the BasicNode. Can you 
create your BasicNode pointer as non constant? Then this will solve your 
problem. Do you have a requirement to create it as a constant pointer, if 
so we have to see what we could do? Please respond

> compilation error when using APIs in BasicNode
> ----------------------------------------------
>
>          Key: AXISCPP-360
>          URL: http://issues.apache.org/jira/browse/AXISCPP-360
>      Project: Axis-C++
>         Type: Bug
>     Reporter: James Jose
>     Assignee: Roshan Weerasuriya

>
> IHeaderBlock *phb=ws.createSOAPHeaderBlock("Test","http://apache.com");
>                                BasicNode 
*bn=phb->createImmediateChild(ELEMENT_NODE,"Name","ns2","http://axis.com
",NULL); 
>                                const BasicNode 
*bn1=phb->getFirstChild();
>                                printf("%s",bn1->getLocalName());
> gives the following compilation error.
> error C2662: 'axiscpp::BasicNode::getLocalName' : cannot convert 'this' 
pointer from 'const axiscpp::BasicNode' to 'axiscpp::BasicNode &'
> The same error occurs if we call other APIs also.
> This compilation problem occurs only when the calling object is of type 
'const BasicNode *'.

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



Mime
View raw message