axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Updated: (AXISCPP-360) compilation error when using APIs in BasicNode
Date Wed, 02 Feb 2005 03:28:21 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-360?page=history ]

Samisa Abeysinghe updated AXISCPP-360:
--------------------------------------

    Description: 
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 *'.


  was:

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 *'.


      Component: SOAP

> compilation error when using APIs in BasicNode
> ----------------------------------------------
>
>          Key: AXISCPP-360
>          URL: http://issues.apache.org/jira/browse/AXISCPP-360
>      Project: Axis-C++
>         Type: Bug
>   Components: SOAP
>     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