You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ha...@apache.org on 2005/02/16 12:47:46 UTC
cvs commit: ws-axis/c/include/axis IHeaderBlock.hpp
hawkeye 2005/02/16 03:47:46
Modified: c/tests/auto_build/testcases/output
IHeaderBlockTest7Request.out
c/tests/auto_build/testcases/client/cpp
IHeaderBlockTest7Client.cpp
c/include/axis IHeaderBlock.hpp
Log:
Altered the IHeaderBlock7Test so that it does not add the same basicnode to the Headerblock and added comments
to IHeaderBlock.hpp so that it is clear that this should not be done (as it causes memory cleanup issues)
Revision Changes Path
1.2 +1 -1 ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest7Request.out
Index: IHeaderBlockTest7Request.out
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest7Request.out,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IHeaderBlockTest7Request.out 10 Feb 2005 15:16:13 -0000 1.1
+++ IHeaderBlockTest7Request.out 16 Feb 2005 11:47:46 -0000 1.2
@@ -6,7 +6,7 @@
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/">APACHE APACHE </ns2:TestHeader></SOAP-ENV:Header>
+<SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/">APACHE is cool</ns2:TestHeader></SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:add xmlns:ns1="http://localhost/axis/Calculator">
<ns1:arg_0_0>2</ns1:arg_0_0>
1.2 +2 -1 ws-axis/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest7Client.cpp
Index: IHeaderBlockTest7Client.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest7Client.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IHeaderBlockTest7Client.cpp 10 Feb 2005 15:16:13 -0000 1.1
+++ IHeaderBlockTest7Client.cpp 16 Feb 2005 11:47:46 -0000 1.2
@@ -28,7 +28,8 @@
IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");
BasicNode * Bnode1=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"APACHE ");
phb->addChild(Bnode1);
- phb->addChild(Bnode1);
+ BasicNode * Bnode2=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"is cool");
+ phb->addChild(Bnode2);
iResult=ws.add(i1, i2);
cout << endl << iResult << endl;
}
1.9 +2 -1 ws-axis/c/include/axis/IHeaderBlock.hpp
Index: IHeaderBlock.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/include/axis/IHeaderBlock.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- IHeaderBlock.hpp 11 Feb 2005 18:45:33 -0000 1.8
+++ IHeaderBlock.hpp 16 Feb 2005 11:47:46 -0000 1.9
@@ -254,7 +254,8 @@
/**
* Adds a child node to the Header Block.
*
- * @param pBasicNode The child node pointer which is to be added.
+ * @param pBasicNode The child node pointer which is to be added
+ * NOTE: This cannot be a pointer to a child that has already been added> If you want to add the same data twice then create a new basic node.
* @return AXIS_SUCCESS to indicate successfull operation.AXIS_FAIL otherwise
*/
virtual int addChild(BasicNode* pBasicNode)=0;