You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ro...@apache.org on 2004/08/06 07:27:54 UTC

cvs commit: ws-axis/c/tests/client/soapHeader/test10/rpc TestClient.cpp

roshan      2004/08/05 22:27:54

  Modified:    c/tests/client/soapHeader/test10/rpc TestClient.cpp
  Log:
  added functionality to check the getAttribute by providing namespace URI and localname etc
  
  Revision  Changes    Path
  1.2       +16 -9     ws-axis/c/tests/client/soapHeader/test10/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test10/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	3 Aug 2004 10:29:41 -0000	1.1
  +++ TestClient.cpp	6 Aug 2004 05:27:53 -0000	1.2
  @@ -104,22 +104,29 @@
       if (pIAttribute1)
       	printf("pIAttribute1 details = %s %s \n", pIAttribute1->getLocalName(), pIAttribute1->getUri());
   
  -    IAttribute* pIAttribute2 = NULL;
  +    pIAttribute1 = NULL;
       int iTmpX = 0;
  -    while ((pIAttribute2 = parentNode->getNextAttribute()) != NULL) {
  -	printf("pIAttribute2 details = %s %s \n", pIAttribute2->getLocalName(), pIAttribute2->getUri());
  +    while ((pIAttribute1 = parentNode->getNextAttribute()) != NULL) {
  +	printf("pIAttribute1 details = %s %s \n", pIAttribute1->getLocalName(), pIAttribute1->getUri());
   	
   	iTmpX++;
      	if (iTmpX==2) break; /*Just for a simple logic*/
       }
   
  -    IAttribute* pIAttribute3 = parentNode->getCurrentAttribute();
  -    if (pIAttribute3)
  -        printf("pIAttribute3 details = %s %s \n", pIAttribute3->getLocalName(), pIAttribute3->getUri());
  +    pIAttribute1 = NULL;
  +    pIAttribute1 = parentNode->getCurrentAttribute();
  +    if (pIAttribute1)
  +        printf("pIAttribute1 details = %s %s \n", pIAttribute1->getLocalName(), pIAttribute1->getUri());
   
  -    IAttribute* pIAttribute4 = parentNode->getLastAttribute();
  -    if (pIAttribute4)
  -    	printf("pIAttribute4 details = %s %s \n", pIAttribute4->getLocalName(), pIAttribute4->getUri());
  +    pIAttribute1 = NULL;
  +    pIAttribute1 = parentNode->getLastAttribute();
  +    if (pIAttribute1)
  +    	printf("pIAttribute1 details = %s %s \n", pIAttribute1->getLocalName(), pIAttribute1->getUri());
  +
  +    pIAttribute1 = NULL;
  +    pIAttribute1 = parentNode->getAttribute("", "http://ws.apache.org/axisCppTest/", "scale");
  +    if (pIAttribute1)
  +        printf("pIAttribute1 details = %s %s \n", pIAttribute1->getLocalName(), pIAttribute1->getUri());
       /*----end testing the getters for SOAP Header Attributes----- */
   
       printf("Sending Requests to end point %s \n\n", endpoint);